private function 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 drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php
Dumps the service container as a PHP class.

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php, line 189

Class

PhpDumper
PhpDumper dumps a service container as a PHP class.

Namespace

Symfony\Component\DependencyInjection\Dumper

Code

private function addProxyClasses() {

  /* @var $proxyDefinitions Definition[] */
  $definitions = array_filter($this->container
    ->getDefinitions(), array(
    $this
      ->getProxyDumper(),
    'isProxyCandidate',
  ));
  $code = '';
  foreach ($definitions as $definition) {
    $code .= "\n" . $this
      ->getProxyDumper()
      ->getProxyCode($definition);
  }
  return $code;
}