Array ( [Container%s/getNonSharedFooService.php] => factories['non_shared_foo'] ??= fn () => self::do($container); if (true === $lazyLoad) { return $container->createProxy('FooLazyClassGhost%s', static fn () => \FooLazyClassGhost%s::createLazyGhost(static fn ($proxy) => self::do($container, $proxy))); } static $include = true; if ($include) { include_once '%sfoo_lazy.php'; $include = false; } return $lazyLoad; } } [Container%s/FooLazyClassGhost%s.php] => services = $this->privates = []; $this->fileMap = [ 'non_shared_foo' => 'getNonSharedFooService', ]; $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; } protected function load($file, $lazyLoad = true): mixed { if (class_exists($class = __NAMESPACE__.'\\'.$file, false)) { return $class::do($this, $lazyLoad); } if ('.' === $file[-4]) { $class = substr($class, 0, -4); } else { $file .= '.php'; } $service = require $this->containerDir.\DIRECTORY_SEPARATOR.$file; return class_exists($class, false) ? $class::do($this, $lazyLoad) : $service; } protected function createProxy($class, \Closure $factory) { class_exists($class, false) || require __DIR__.'/'.$class.'.php'; return $factory(); } } [Symfony_DI_PhpDumper_Service_Non_Shared_Lazy_As_File.preload.php] => = 7.4 when preloading is desired use Symfony\Component\DependencyInjection\Dumper\Preloader; if (in_array(PHP_SAPI, ['cli', 'phpdbg'], true)) { return; } require '%svendor/autoload.php'; (require __DIR__.'/Symfony_DI_PhpDumper_Service_Non_Shared_Lazy_As_File.php')->set(\Container%s\Symfony_DI_PhpDumper_Service_Non_Shared_Lazy_As_File::class, null); require __DIR__.'/Container%s/FooLazyClassGhost%s.php'; require __DIR__.'/Container%s/getNonSharedFooService.php'; $classes = []; $classes[] = 'Bar\FooLazyClass'; $classes[] = 'Symfony\Component\DependencyInjection\ContainerInterface'; $preloaded = Preloader::preload($classes); [Symfony_DI_PhpDumper_Service_Non_Shared_Lazy_As_File.php] => '%s', 'container.build_id' => '%s', 'container.build_time' => %d, ], __DIR__.\DIRECTORY_SEPARATOR.'Container%s'); )