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\InvalidArgumentException;
7 use Symfony\Component\DependencyInjection\Exception\LogicException;
8 use Symfony\Component\DependencyInjection\Exception\RuntimeException;
9 use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
12 * This class has been auto-generated
13 * by the Symfony Dependency Injection Component.
15 * @final since Symfony 3.3
17 class Symfony_DI_PhpDumper_Test_Uninitialized_Reference extends Container
20 private $targetDirs = array();
22 public function __construct()
24 $this->services = array();
25 $this->methodMap = array(
26 'bar' => 'getBarService',
27 'baz' => 'getBazService',
28 'foo1' => 'getFoo1Service',
29 'foo3' => 'getFoo3Service',
31 $this->privates = array(
35 $this->aliases = array();
38 public function getRemovedIds()
41 'Psr\\Container\\ContainerInterface' => true,
42 'Symfony\\Component\\DependencyInjection\\ContainerInterface' => true,
48 public function compile()
50 throw new LogicException('You cannot compile a dumped container that was already compiled.');
53 public function isCompiled()
58 public function isFrozen()
60 @trigger_error(sprintf('The %s() method is deprecated since Symfony 3.3 and will be removed in 4.0. Use the isCompiled() method instead.', __METHOD__), E_USER_DEPRECATED);
66 * Gets the public 'bar' shared service.
70 protected function getBarService()
72 $this->services['bar'] = $instance = new \stdClass();
74 $instance->foo1 = ${($_ = isset($this->services['foo1']) ? $this->services['foo1'] : null) && false ?: '_'};
75 $instance->foo2 = null;
76 $instance->foo3 = ${($_ = isset($this->services['foo3']) ? $this->services['foo3'] : null) && false ?: '_'};
77 $instance->closures = array(0 => function () {
78 return ${($_ = isset($this->services['foo1']) ? $this->services['foo1'] : null) && false ?: '_'};
82 return ${($_ = isset($this->services['foo3']) ? $this->services['foo3'] : null) && false ?: '_'};
84 $instance->iter = new RewindableGenerator(function () {
85 if (isset($this->services['foo1'])) {
86 yield 'foo1' => ${($_ = isset($this->services['foo1']) ? $this->services['foo1'] : null) && false ?: '_'};
91 if (isset($this->services['foo3'])) {
92 yield 'foo3' => ${($_ = isset($this->services['foo3']) ? $this->services['foo3'] : null) && false ?: '_'};
95 return 0 + (int) (isset($this->services['foo1'])) + (int) (false) + (int) (isset($this->services['foo3']));
102 * Gets the public 'baz' shared service.
106 protected function getBazService()
108 $this->services['baz'] = $instance = new \stdClass();
110 $instance->foo3 = ${($_ = isset($this->services['foo3']) ? $this->services['foo3'] : $this->services['foo3'] = new \stdClass()) && false ?: '_'};
116 * Gets the public 'foo1' shared service.
120 protected function getFoo1Service()
122 return $this->services['foo1'] = new \stdClass();
126 * Gets the private 'foo3' shared service.
130 protected function getFoo3Service()
132 return $this->services['foo3'] = new \stdClass();