|
| 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 Symfony_DI_PhpDumper_Service_CurrentFactoryInlining extends Container |
| 16 | +{ |
| 17 | + protected $parameters = []; |
| 18 | + protected readonly \WeakReference $ref; |
| 19 | + |
| 20 | + public function __construct() |
| 21 | + { |
| 22 | + $this->ref = \WeakReference::create($this); |
| 23 | + $this->services = $this->privates = []; |
| 24 | + $this->methodMap = [ |
| 25 | + 'inlined_current' => 'getInlinedCurrentService', |
| 26 | + 'not_inlined_current' => 'getNotInlinedCurrentService', |
| 27 | + ]; |
| 28 | + |
| 29 | + $this->aliases = []; |
| 30 | + } |
| 31 | + |
| 32 | + public function compile(): void |
| 33 | + { |
| 34 | + throw new LogicException('You cannot compile a dumped container that was already compiled.'); |
| 35 | + } |
| 36 | + |
| 37 | + public function isCompiled(): bool |
| 38 | + { |
| 39 | + return true; |
| 40 | + } |
| 41 | + |
| 42 | + public function getRemovedIds(): array |
| 43 | + { |
| 44 | + return [ |
| 45 | + 'Symfony\\Component\\DependencyInjection\\Tests\\Compiler\\Foo' => true, |
| 46 | + ]; |
| 47 | + } |
| 48 | + |
| 49 | + /** |
| 50 | + * Gets the public 'inlined_current' shared service. |
| 51 | + * |
| 52 | + * @return \Symfony\Component\DependencyInjection\Tests\Compiler\Foo |
| 53 | + */ |
| 54 | + protected static function getInlinedCurrentService($container) |
| 55 | + { |
| 56 | + return $container->services['inlined_current'] = ($container->privates['Symfony\\Component\\DependencyInjection\\Tests\\Compiler\\Foo'] ??= new \Symfony\Component\DependencyInjection\Tests\Compiler\Foo()); |
| 57 | + } |
| 58 | + |
| 59 | + /** |
| 60 | + * Gets the public 'not_inlined_current' shared service. |
| 61 | + * |
| 62 | + * @return \Symfony\Component\DependencyInjection\Tests\Compiler\Foo |
| 63 | + */ |
| 64 | + protected static function getNotInlinedCurrentService($container) |
| 65 | + { |
| 66 | + return $container->services['not_inlined_current'] = \current([($container->privates['Symfony\\Component\\DependencyInjection\\Tests\\Compiler\\Foo'] ??= new \Symfony\Component\DependencyInjection\Tests\Compiler\Foo()), 123]); |
| 67 | + } |
| 68 | +} |
0 commit comments