You are here

private function PhpDumper::exportTargetDirs in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/dependency-injection/Dumper/PhpDumper.php \Symfony\Component\DependencyInjection\Dumper\PhpDumper::exportTargetDirs()
2 calls to PhpDumper::exportTargetDirs()
PhpDumper::addConstructor in vendor/symfony/dependency-injection/Dumper/PhpDumper.php
Adds the constructor.
PhpDumper::addFrozenConstructor in vendor/symfony/dependency-injection/Dumper/PhpDumper.php
Adds the constructor for a frozen container.

File

vendor/symfony/dependency-injection/Dumper/PhpDumper.php, line 1528

Class

PhpDumper
PhpDumper dumps a service container as a PHP class.

Namespace

Symfony\Component\DependencyInjection\Dumper

Code

private function exportTargetDirs() {
  return null === $this->targetDirRegex ? '' : <<<EOF

        \$dir = __DIR__;
        for (\$i = 1; \$i <= {<span class="php-variable">$this</span>-&gt;<span class="php-function-or-constant property member-of-self">targetDirMaxMatches</span>}; ++\$i) {
            \$this->targetDirs[\$i] = \$dir = dirname(\$dir);
        }
EOF;
}