private function PhpDumper::addProxyClasses in Service Container 7
Same name and namespace in other branches
- 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php \Symfony\Component\DependencyInjection\Dumper\PhpDumper::addProxyClasses()
Generates code for the proxies to be attached after the container class.
Return value
string
1 call to PhpDumper::addProxyClasses()
- PhpDumper::dump in modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Dumper/ PhpDumper.php - Dumps the service container as a PHP class.
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Dumper/ PhpDumper.php, line 234
Class
- PhpDumper
- PhpDumper dumps a service container as a PHP class.
Namespace
Symfony\Component\DependencyInjection\DumperCode
private function addProxyClasses() {
/* @var $definitions Definition[] */
$definitions = array_filter($this->container
->getDefinitions(), array(
$this
->getProxyDumper(),
'isProxyCandidate',
));
$code = '';
foreach ($definitions as $definition) {
$code .= "\n" . $this
->getProxyDumper()
->getProxyCode($definition);
}
return $code;
}