|
| 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_Issues49591 extends Container |
| 16 | +{ |
| 17 | + protected $parameters = []; |
| 18 | + protected \Closure $getService; |
| 19 | + |
| 20 | + public function __construct() |
| 21 | + { |
| 22 | + $this->getService = $this->getService(...); |
| 23 | + $this->services = $this->privates = []; |
| 24 | + $this->methodMap = [ |
| 25 | + 'connection' => 'getConnectionService', |
| 26 | + 'session' => 'getSessionService', |
| 27 | + 'subscriber' => 'getSubscriberService', |
| 28 | + ]; |
| 29 | + |
| 30 | + $this->aliases = []; |
| 31 | + } |
| 32 | + |
| 33 | + public function compile(): void |
| 34 | + { |
| 35 | + throw new LogicException('You cannot compile a dumped container that was already compiled.'); |
| 36 | + } |
| 37 | + |
| 38 | + public function isCompiled(): bool |
| 39 | + { |
| 40 | + return true; |
| 41 | + } |
| 42 | + |
| 43 | + public function getRemovedIds(): array |
| 44 | + { |
| 45 | + return [ |
| 46 | + '.service_locator.SoPO3vR' => true, |
| 47 | + 'repository' => true, |
| 48 | + ]; |
| 49 | + } |
| 50 | + |
| 51 | + /** |
| 52 | + * Gets the public 'connection' shared service. |
| 53 | + * |
| 54 | + * @return \Symfony\Component\DependencyInjection\Tests\Connection |
| 55 | + */ |
| 56 | + protected function getConnectionService() |
| 57 | + { |
| 58 | + return $this->services['connection'] = new \Symfony\Component\DependencyInjection\Tests\Connection(new \Symfony\Component\DependencyInjection\Argument\ServiceLocator($this->getService, [ |
| 59 | + 'subscriber' => ['services', 'subscriber', 'getSubscriberService', false], |
| 60 | + ], [ |
| 61 | + 'subscriber' => 'Symfony\\Component\\DependencyInjection\\Tests\\Subscriber', |
| 62 | + ])); |
| 63 | + } |
| 64 | + |
| 65 | + /** |
| 66 | + * Gets the public 'session' shared service. |
| 67 | + * |
| 68 | + * @return \Symfony\Component\DependencyInjection\Tests\Session |
| 69 | + */ |
| 70 | + protected function getSessionService() |
| 71 | + { |
| 72 | + $a = ($this->services['connection'] ?? $this->getConnectionService()); |
| 73 | + |
| 74 | + if (isset($this->services['session'])) { |
| 75 | + return $this->services['session']; |
| 76 | + } |
| 77 | + |
| 78 | + return $this->services['session'] = (new \Symfony\Component\DependencyInjection\Tests\Repository())->login($a); |
| 79 | + } |
| 80 | + |
| 81 | + /** |
| 82 | + * Gets the public 'subscriber' shared service. |
| 83 | + * |
| 84 | + * @return \Symfony\Component\DependencyInjection\Tests\Subscriber |
| 85 | + */ |
| 86 | + protected function getSubscriberService() |
| 87 | + { |
| 88 | + $a = ($this->services['session'] ?? $this->getSessionService()); |
| 89 | + |
| 90 | + if (isset($this->services['subscriber'])) { |
| 91 | + return $this->services['subscriber']; |
| 92 | + } |
| 93 | + |
| 94 | + return $this->services['subscriber'] = new \Symfony\Component\DependencyInjection\Tests\Subscriber($a); |
| 95 | + } |
| 96 | +} |
0 commit comments