You are here

private function PhpDumper::dumpLiteralClass in Service Container 7

Same name and namespace in other branches
  1. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php \Symfony\Component\DependencyInjection\Dumper\PhpDumper::dumpLiteralClass()

Dumps a string to a literal (aka PHP Code) class value.

Parameters

string $class:

Return value

string

2 calls to PhpDumper::dumpLiteralClass()
PhpDumper::addNewInstance in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php
PhpDumper::addServiceConfigurator in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php
Adds configurator definition.

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php, line 1388

Class

PhpDumper
PhpDumper dumps a service container as a PHP class.

Namespace

Symfony\Component\DependencyInjection\Dumper

Code

private function dumpLiteralClass($class) {
  return '\\' . substr(str_replace('\\\\', '\\', $class), 1, -1);
}