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 'bar6' => 'getBar6Service',
30 'baz6' => 'getBaz6Service',
31 'connection' => 'getConnectionService',
32 'connection2' => 'getConnection2Service',
33 'dispatcher' => 'getDispatcherService',
34 'dispatcher2' => 'getDispatcher2Service',
35 'foo' => 'getFooService',
36 'foo2' => 'getFoo2Service',
37 'foo4' => 'getFoo4Service',
38 'foo5' => 'getFoo5Service',
39 'foo6' => 'getFoo6Service',
40 'foobar' => 'getFoobarService',
41 'foobar2' => 'getFoobar2Service',
42 'foobar3' => 'getFoobar3Service',
43 'foobar4' => 'getFoobar4Service',
44 'logger' => 'getLoggerService',
45 'manager' => 'getManagerService',
46 'manager2' => 'getManager2Service',
47 'subscriber' => 'getSubscriberService',
49 $this->privates = array(
53 $this->aliases = array();
56 public function getRemovedIds()
59 'Psr\\Container\\ContainerInterface' => true,
60 'Symfony\\Component\\DependencyInjection\\ContainerInterface' => true,
66 'subscriber2' => true,
70 public function compile()
72 throw new LogicException('You cannot compile a dumped container that was already compiled.');
75 public function isCompiled()
80 public function isFrozen()
82 @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);
88 * Gets the public 'bar' shared service.
90 * @return \BarCircular
92 protected function getBarService()
94 $this->services['bar'] = $instance = new \BarCircular();
96 $instance->addFoobar(${($_ = isset($this->services['foobar']) ? $this->services['foobar'] : $this->getFoobarService()) && false ?: '_'});
102 * Gets the public 'bar3' shared service.
104 * @return \BarCircular
106 protected function getBar3Service()
108 $this->services['bar3'] = $instance = new \BarCircular();
110 $a = ${($_ = isset($this->services['foobar3']) ? $this->services['foobar3'] : $this->services['foobar3'] = new \FoobarCircular()) && false ?: '_'};
112 $instance->addFoobar($a, $a);
118 * Gets the public 'bar5' shared service.
122 protected function getBar5Service()
124 $a = ${($_ = isset($this->services['foo5']) ? $this->services['foo5'] : $this->getFoo5Service()) && false ?: '_'};
126 if (isset($this->services['bar5'])) {
127 return $this->services['bar5'];
130 $this->services['bar5'] = $instance = new \stdClass($a);
138 * Gets the public 'baz6' shared service.
142 protected function getBaz6Service()
144 $this->services['baz6'] = $instance = new \stdClass();
146 $instance->bar6 = ${($_ = isset($this->services['bar6']) ? $this->services['bar6'] : $this->getBar6Service()) && false ?: '_'};
152 * Gets the public 'connection' shared service.
156 protected function getConnectionService()
158 $a = new \stdClass();
160 $this->services['connection'] = $instance = new \stdClass(${($_ = isset($this->services['dispatcher']) ? $this->services['dispatcher'] : $this->getDispatcherService()) && false ?: '_'}, $a);
162 $a->logger = ${($_ = isset($this->services['logger']) ? $this->services['logger'] : $this->getLoggerService()) && false ?: '_'};
168 * Gets the public 'connection2' shared service.
172 protected function getConnection2Service()
174 $a = new \stdClass();
176 $this->services['connection2'] = $instance = new \stdClass(${($_ = isset($this->services['dispatcher2']) ? $this->services['dispatcher2'] : $this->getDispatcher2Service()) && false ?: '_'}, $a);
178 $b = new \stdClass($instance);
180 $b->handler2 = new \stdClass(${($_ = isset($this->services['manager2']) ? $this->services['manager2'] : $this->getManager2Service()) && false ?: '_'});
188 * Gets the public 'dispatcher' shared service.
192 protected function getDispatcherService($lazyLoad = true)
194 $this->services['dispatcher'] = $instance = new \stdClass();
196 $instance->subscriber = ${($_ = isset($this->services['subscriber']) ? $this->services['subscriber'] : $this->getSubscriberService()) && false ?: '_'};
202 * Gets the public 'dispatcher2' shared service.
206 protected function getDispatcher2Service($lazyLoad = true)
208 $this->services['dispatcher2'] = $instance = new \stdClass();
210 $instance->subscriber2 = new \stdClass(${($_ = isset($this->services['manager2']) ? $this->services['manager2'] : $this->getManager2Service()) && false ?: '_'});
216 * Gets the public 'foo' shared service.
218 * @return \FooCircular
220 protected function getFooService()
222 $a = ${($_ = isset($this->services['bar']) ? $this->services['bar'] : $this->getBarService()) && false ?: '_'};
224 if (isset($this->services['foo'])) {
225 return $this->services['foo'];
228 return $this->services['foo'] = new \FooCircular($a);
232 * Gets the public 'foo2' shared service.
234 * @return \FooCircular
236 protected function getFoo2Service()
238 $a = new \BarCircular();
240 $this->services['foo2'] = $instance = new \FooCircular($a);
242 $a->addFoobar(${($_ = isset($this->services['foobar2']) ? $this->services['foobar2'] : $this->getFoobar2Service()) && false ?: '_'});
248 * Gets the public 'foo4' service.
252 protected function getFoo4Service()
254 $instance = new \stdClass();
256 $instance->foobar = ${($_ = isset($this->services['foobar4']) ? $this->services['foobar4'] : $this->getFoobar4Service()) && false ?: '_'};
262 * Gets the public 'foo5' shared service.
266 protected function getFoo5Service()
268 $this->services['foo5'] = $instance = new \stdClass();
270 $instance->bar = ${($_ = isset($this->services['bar5']) ? $this->services['bar5'] : $this->getBar5Service()) && false ?: '_'};
276 * Gets the public 'foo6' shared service.
280 protected function getFoo6Service()
282 $this->services['foo6'] = $instance = new \stdClass();
284 $instance->bar6 = ${($_ = isset($this->services['bar6']) ? $this->services['bar6'] : $this->getBar6Service()) && false ?: '_'};
290 * Gets the public 'foobar' shared service.
292 * @return \FoobarCircular
294 protected function getFoobarService()
296 $a = ${($_ = isset($this->services['foo']) ? $this->services['foo'] : $this->getFooService()) && false ?: '_'};
298 if (isset($this->services['foobar'])) {
299 return $this->services['foobar'];
302 return $this->services['foobar'] = new \FoobarCircular($a);
306 * Gets the public 'foobar2' shared service.
308 * @return \FoobarCircular
310 protected function getFoobar2Service()
312 $a = ${($_ = isset($this->services['foo2']) ? $this->services['foo2'] : $this->getFoo2Service()) && false ?: '_'};
314 if (isset($this->services['foobar2'])) {
315 return $this->services['foobar2'];
318 return $this->services['foobar2'] = new \FoobarCircular($a);
322 * Gets the public 'foobar3' shared service.
324 * @return \FoobarCircular
326 protected function getFoobar3Service()
328 return $this->services['foobar3'] = new \FoobarCircular();
332 * Gets the public 'foobar4' shared service.
336 protected function getFoobar4Service()
338 $a = new \stdClass();
340 $this->services['foobar4'] = $instance = new \stdClass($a);
342 $a->foobar = $instance;
348 * Gets the public 'logger' shared service.
352 protected function getLoggerService()
354 $a = ${($_ = isset($this->services['connection']) ? $this->services['connection'] : $this->getConnectionService()) && false ?: '_'};
356 if (isset($this->services['logger'])) {
357 return $this->services['logger'];
360 $this->services['logger'] = $instance = new \stdClass($a);
362 $instance->handler = new \stdClass(${($_ = isset($this->services['manager']) ? $this->services['manager'] : $this->getManagerService()) && false ?: '_'});
368 * Gets the public 'manager' shared service.
372 protected function getManagerService()
374 $a = ${($_ = isset($this->services['connection']) ? $this->services['connection'] : $this->getConnectionService()) && false ?: '_'};
376 if (isset($this->services['manager'])) {
377 return $this->services['manager'];
380 return $this->services['manager'] = new \stdClass($a);
384 * Gets the public 'manager2' shared service.
388 protected function getManager2Service()
390 $a = ${($_ = isset($this->services['connection2']) ? $this->services['connection2'] : $this->getConnection2Service()) && false ?: '_'};
392 if (isset($this->services['manager2'])) {
393 return $this->services['manager2'];
396 return $this->services['manager2'] = new \stdClass($a);
400 * Gets the public 'subscriber' shared service.
404 protected function getSubscriberService()
406 return $this->services['subscriber'] = new \stdClass(${($_ = isset($this->services['manager']) ? $this->services['manager'] : $this->getManagerService()) && false ?: '_'});
410 * Gets the private 'bar6' shared service.
414 protected function getBar6Service()
416 $a = ${($_ = isset($this->services['foo6']) ? $this->services['foo6'] : $this->getFoo6Service()) && false ?: '_'};
418 if (isset($this->services['bar6'])) {
419 return $this->services['bar6'];
422 return $this->services['bar6'] = new \stdClass($a);