Array ( [Container%s/removed-ids.php] => true, 'Symfony\\Component\\DependencyInjection\\ContainerInterface' => true, ]; [Container%s/ProjectServiceContainer.php] => buildParameters = $buildParameters; $this->containerDir = $containerDir; $this->targetDir = \dirname($containerDir); $this->parameters = $this->getDefaultParameters(); $this->services = $this->privates = []; $this->methodMap = [ 'lazy_foo' => 'getLazyFooService', ]; $this->aliases = []; } public function compile(): void { throw new LogicException('You cannot compile a dumped container that was already compiled.'); } public function isCompiled(): bool { return true; } public function getRemovedIds(): array { return require $this->containerDir.\DIRECTORY_SEPARATOR.'removed-ids.php'; } protected function createProxy($class, \Closure $factory) { class_exists($class, false) || class_alias(__NAMESPACE__."\\$class", $class, false); return $factory(); } /** * Gets the public 'lazy_foo' shared service. * * @return \Bar\FooClass */ protected function getLazyFooService($lazyLoad = true) { if ($lazyLoad) { return $this->services['lazy_foo'] = $this->createProxy('FooClass_%s', function () { return \FooClass_%s::staticProxyConstructor(function (&$wrappedInstance, \ProxyManager\Proxy\LazyLoadingInterface $proxy) { $wrappedInstance = $this->getLazyFooService(false); $proxy->setProxyInitializer(null); return true; }); }); } include_once $this->targetDir.''.'/Fixtures/includes/foo_lazy.php'; return new \Bar\FooClass(new \Bar\FooLazyClass()); } /** * @return array|bool|float|int|string|null */ public function getParameter($name) { $name = (string) $name; if (isset($this->buildParameters[$name])) { return $this->buildParameters[$name]; } if (!(isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters))) { throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name)); } if (isset($this->loadedDynamicParameters[$name])) { return $this->loadedDynamicParameters[$name] ? $this->dynamicParameters[$name] : $this->getDynamicParameter($name); } return $this->parameters[$name]; } public function hasParameter($name): bool { $name = (string) $name; if (isset($this->buildParameters[$name])) { return true; } return isset($this->parameters[$name]) || isset($this->loadedDynamicParameters[$name]) || array_key_exists($name, $this->parameters); } public function setParameter($name, $value): void { throw new LogicException('Impossible to call set() on a frozen ParameterBag.'); } public function getParameterBag(): ParameterBagInterface { if (null === $this->parameterBag) { $parameters = $this->parameters; foreach ($this->loadedDynamicParameters as $name => $loaded) { $parameters[$name] = $loaded ? $this->dynamicParameters[$name] : $this->getDynamicParameter($name); } foreach ($this->buildParameters as $name => $value) { $parameters[$name] = $value; } $this->parameterBag = new FrozenParameterBag($parameters); } return $this->parameterBag; } private $loadedDynamicParameters = []; private $dynamicParameters = []; private function getDynamicParameter(string $name) { throw new InvalidArgumentException(sprintf('The dynamic parameter "%s" must be defined.', $name)); } protected function getDefaultParameters(): array { return [ 'container.dumper.inline_factories' => true, 'container.dumper.inline_class_loader' => true, ]; } } include_once $this->targetDir.''.'/Fixtures/includes/foo.php'; class FooClass_%s extends \Bar\FooClass implements \ProxyManager\Proxy\VirtualProxyInterface { %A } [ProjectServiceContainer.preload.php] => '%s', 'container.build_id' => '%s', 'container.build_time' => 1563381341, ], __DIR__.\DIRECTORY_SEPARATOR.'Container%s'); )