|
| 1 | +<?php |
| 2 | + |
| 3 | +use Symfony\Component\DependencyInjection\Argument\RewindableGenerator; |
| 4 | +use Symfony\Component\DependencyInjection\ContainerInterface; |
| 5 | +use Symfony\Component\DependencyInjection\Container; |
| 6 | +use Symfony\Component\DependencyInjection\Exception\LogicException; |
| 7 | +use Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException; |
| 8 | +use Symfony\Component\DependencyInjection\Exception\RuntimeException; |
| 9 | +use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag; |
| 10 | +use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface; |
| 11 | + |
| 12 | +/** |
| 13 | + * @internal This class has been auto-generated by the Symfony Dependency Injection Component. |
| 14 | + */ |
| 15 | +class ProjectServiceContainer extends Container |
| 16 | +{ |
| 17 | + protected $parameters = []; |
| 18 | + |
| 19 | + public function __construct() |
| 20 | + { |
| 21 | + $this->services = $this->privates = []; |
| 22 | + $this->methodMap = [ |
| 23 | + 'foo' => 'getFooService', |
| 24 | + ]; |
| 25 | + |
| 26 | + $this->aliases = []; |
| 27 | + } |
| 28 | + |
| 29 | + public function compile(): void |
| 30 | + { |
| 31 | + throw new LogicException('You cannot compile a dumped container that was already compiled.'); |
| 32 | + } |
| 33 | + |
| 34 | + public function isCompiled(): bool |
| 35 | + { |
| 36 | + return true; |
| 37 | + } |
| 38 | + |
| 39 | + protected function createProxy($class, \Closure $factory) |
| 40 | + { |
| 41 | + return $factory(); |
| 42 | + } |
| 43 | + |
| 44 | + /** |
| 45 | + * Gets the public 'foo' shared autowired service. |
| 46 | + * |
| 47 | + * @return \Symfony\Component\DependencyInjection\Tests\Compiler\AAndIInterfaceConsumer |
| 48 | + */ |
| 49 | + protected static function getFooService($container) |
| 50 | + { |
| 51 | + $a = ($container->privates['.lazy.foo.qFdMZVK'] ?? self::get_Lazy_Foo_QFdMZVKService($container)); |
| 52 | + |
| 53 | + if (isset($container->services['foo'])) { |
| 54 | + return $container->services['foo']; |
| 55 | + } |
| 56 | + |
| 57 | + return $container->services['foo'] = new \Symfony\Component\DependencyInjection\Tests\Compiler\AAndIInterfaceConsumer($a); |
| 58 | + } |
| 59 | + |
| 60 | + /** |
| 61 | + * Gets the private '.lazy.foo.qFdMZVK' shared service. |
| 62 | + * |
| 63 | + * @return \object |
| 64 | + */ |
| 65 | + protected static function get_Lazy_Foo_QFdMZVKService($container, $lazyLoad = true) |
| 66 | + { |
| 67 | + if (true === $lazyLoad) { |
| 68 | + return $container->privates['.lazy.foo.qFdMZVK'] = $container->createProxy('objectProxy1fd6daa', static fn () => \objectProxy1fd6daa::createLazyProxy(static fn () => self::get_Lazy_Foo_QFdMZVKService($container, false))); |
| 69 | + } |
| 70 | + |
| 71 | + return ($container->services['foo'] ?? self::getFooService($container)); |
| 72 | + } |
| 73 | +} |
| 74 | + |
| 75 | +class objectProxy1fd6daa implements \Symfony\Component\DependencyInjection\Tests\Compiler\AInterface, \Symfony\Component\DependencyInjection\Tests\Compiler\IInterface, \Symfony\Component\VarExporter\LazyObjectInterface |
| 76 | +{ |
| 77 | + use \Symfony\Component\VarExporter\LazyProxyTrait; |
| 78 | + |
| 79 | + private const LAZY_OBJECT_PROPERTY_SCOPES = []; |
| 80 | + |
| 81 | + public function initializeLazyObject(): \Symfony\Component\DependencyInjection\Tests\Compiler\AInterface&\Symfony\Component\DependencyInjection\Tests\Compiler\IInterface |
| 82 | + { |
| 83 | + if ($state = $this->lazyObjectState ?? null) { |
| 84 | + return $state->realInstance ??= ($state->initializer)(); |
| 85 | + } |
| 86 | + |
| 87 | + return $this; |
| 88 | + } |
| 89 | +} |
| 90 | + |
| 91 | +// Help opcache.preload discover always-needed symbols |
| 92 | +class_exists(\Symfony\Component\VarExporter\Internal\Hydrator::class); |
| 93 | +class_exists(\Symfony\Component\VarExporter\Internal\LazyObjectRegistry::class); |
| 94 | +class_exists(\Symfony\Component\VarExporter\Internal\LazyObjectState::class); |
0 commit comments