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_Almost_Circular_Public extends Container
20 private $targetDirs = array();
22 public function __construct()
24 $this->services = array();
25 $this->methodMap = array(
26 'bar' => 'getBarService',
27 'bar3' => 'getBar3Service',
28 'bar5' => 'getBar5Service',
29 'foo' => 'getFooService',
30 'foo2' => 'getFoo2Service',
31 'foo4' => 'getFoo4Service',
32 'foo5' => 'getFoo5Service',
33 'foobar' => 'getFoobarService',
34 'foobar2' => 'getFoobar2Service',
35 'foobar3' => 'getFoobar3Service',
36 'foobar4' => 'getFoobar4Service',
39 $this->aliases = array();
42 public function getRemovedIds()
45 'Psr\\Container\\ContainerInterface' => true,
46 'Symfony\\Component\\DependencyInjection\\ContainerInterface' => true,
51 public function compile()
53 throw new LogicException('You cannot compile a dumped container that was already compiled.');
56 public function isCompiled()
61 public function isFrozen()
63 @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);
69 * Gets the public 'bar' shared service.
71 * @return \BarCircular
73 protected function getBarService()
75 $this->services['bar'] = $instance = new \BarCircular();
77 $instance->addFoobar(${($_ = isset($this->services['foobar']) ? $this->services['foobar'] : $this->getFoobarService()) && false ?: '_'});
83 * Gets the public 'bar3' shared service.
85 * @return \BarCircular
87 protected function getBar3Service()
89 $this->services['bar3'] = $instance = new \BarCircular();
91 $a = ${($_ = isset($this->services['foobar3']) ? $this->services['foobar3'] : $this->services['foobar3'] = new \FoobarCircular()) && false ?: '_'};
93 $instance->addFoobar($a, $a);
99 * Gets the public 'bar5' shared service.
103 protected function getBar5Service()
105 $a = ${($_ = isset($this->services['foo5']) ? $this->services['foo5'] : $this->getFoo5Service()) && false ?: '_'};
107 if (isset($this->services['bar5'])) {
108 return $this->services['bar5'];
111 $this->services['bar5'] = $instance = new \stdClass($a);
119 * Gets the public 'foo' shared service.
121 * @return \FooCircular
123 protected function getFooService()
125 $a = ${($_ = isset($this->services['bar']) ? $this->services['bar'] : $this->getBarService()) && false ?: '_'};
127 if (isset($this->services['foo'])) {
128 return $this->services['foo'];
131 return $this->services['foo'] = new \FooCircular($a);
135 * Gets the public 'foo2' shared service.
137 * @return \FooCircular
139 protected function getFoo2Service()
141 $a = new \BarCircular();
143 $this->services['foo2'] = $instance = new \FooCircular($a);
145 $a->addFoobar(${($_ = isset($this->services['foobar2']) ? $this->services['foobar2'] : $this->getFoobar2Service()) && false ?: '_'});
151 * Gets the public 'foo4' service.
155 protected function getFoo4Service()
157 $instance = new \stdClass();
159 $instance->foobar = ${($_ = isset($this->services['foobar4']) ? $this->services['foobar4'] : $this->getFoobar4Service()) && false ?: '_'};
165 * Gets the public 'foo5' shared service.
169 protected function getFoo5Service()
171 $this->services['foo5'] = $instance = new \stdClass();
173 $instance->bar = ${($_ = isset($this->services['bar5']) ? $this->services['bar5'] : $this->getBar5Service()) && false ?: '_'};
179 * Gets the public 'foobar' shared service.
181 * @return \FoobarCircular
183 protected function getFoobarService()
185 $a = ${($_ = isset($this->services['foo']) ? $this->services['foo'] : $this->getFooService()) && false ?: '_'};
187 if (isset($this->services['foobar'])) {
188 return $this->services['foobar'];
191 return $this->services['foobar'] = new \FoobarCircular($a);
195 * Gets the public 'foobar2' shared service.
197 * @return \FoobarCircular
199 protected function getFoobar2Service()
201 $a = ${($_ = isset($this->services['foo2']) ? $this->services['foo2'] : $this->getFoo2Service()) && false ?: '_'};
203 if (isset($this->services['foobar2'])) {
204 return $this->services['foobar2'];
207 return $this->services['foobar2'] = new \FoobarCircular($a);
211 * Gets the public 'foobar3' shared service.
213 * @return \FoobarCircular
215 protected function getFoobar3Service()
217 return $this->services['foobar3'] = new \FoobarCircular();
221 * Gets the public 'foobar4' shared service.
225 protected function getFoobar4Service()
227 $a = new \stdClass();
229 $this->services['foobar4'] = $instance = new \stdClass($a);
231 $a->foobar = $instance;