private function PhpDumper::addProxyClasses in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/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 vendor/
symfony/ dependency-injection/ Dumper/ PhpDumper.php - Dumps the service container as a PHP class.
File
- vendor/
symfony/ dependency-injection/ Dumper/ PhpDumper.php, line 228
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;
}