Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[yaffs-website] / vendor / symfony / dependency-injection / Tests / Fixtures / php / services_almost_circular_private.php
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\InvalidArgumentException;
7 use Symfony\Component\DependencyInjection\Exception\LogicException;
8 use Symfony\Component\DependencyInjection\Exception\RuntimeException;
9 use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
10
11 /**
12  * This class has been auto-generated
13  * by the Symfony Dependency Injection Component.
14  *
15  * @final since Symfony 3.3
16  */
17 class Symfony_DI_PhpDumper_Test_Almost_Circular_Private extends Container
18 {
19     private $parameters;
20     private $targetDirs = array();
21
22     public function __construct()
23     {
24         $this->services = array();
25         $this->methodMap = array(
26             'bar2' => 'getBar2Service',
27             'bar3' => 'getBar3Service',
28             'bar6' => 'getBar6Service',
29             'baz6' => 'getBaz6Service',
30             'connection' => 'getConnectionService',
31             'connection2' => 'getConnection2Service',
32             'foo' => 'getFooService',
33             'foo2' => 'getFoo2Service',
34             'foo5' => 'getFoo5Service',
35             'foo6' => 'getFoo6Service',
36             'foobar4' => 'getFoobar4Service',
37             'logger' => 'getLoggerService',
38             'manager' => 'getManagerService',
39             'manager2' => 'getManager2Service',
40             'subscriber' => 'getSubscriberService',
41         );
42         $this->privates = array(
43             'bar6' => true,
44         );
45
46         $this->aliases = array();
47     }
48
49     public function getRemovedIds()
50     {
51         return array(
52             'Psr\\Container\\ContainerInterface' => true,
53             'Symfony\\Component\\DependencyInjection\\ContainerInterface' => true,
54             'bar' => true,
55             'bar5' => true,
56             'bar6' => true,
57             'config' => true,
58             'config2' => true,
59             'dispatcher' => true,
60             'dispatcher2' => true,
61             'foo4' => true,
62             'foobar' => true,
63             'foobar2' => true,
64             'foobar3' => true,
65             'logger2' => true,
66             'subscriber2' => true,
67         );
68     }
69
70     public function compile()
71     {
72         throw new LogicException('You cannot compile a dumped container that was already compiled.');
73     }
74
75     public function isCompiled()
76     {
77         return true;
78     }
79
80     public function isFrozen()
81     {
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);
83
84         return true;
85     }
86
87     /**
88      * Gets the public 'bar2' shared service.
89      *
90      * @return \BarCircular
91      */
92     protected function getBar2Service()
93     {
94         $this->services['bar2'] = $instance = new \BarCircular();
95
96         $instance->addFoobar(new \FoobarCircular(${($_ = isset($this->services['foo2']) ? $this->services['foo2'] : $this->getFoo2Service()) && false ?: '_'}));
97
98         return $instance;
99     }
100
101     /**
102      * Gets the public 'bar3' shared service.
103      *
104      * @return \BarCircular
105      */
106     protected function getBar3Service()
107     {
108         $this->services['bar3'] = $instance = new \BarCircular();
109
110         $a = new \FoobarCircular();
111
112         $instance->addFoobar($a, $a);
113
114         return $instance;
115     }
116
117     /**
118      * Gets the public 'baz6' shared service.
119      *
120      * @return \stdClass
121      */
122     protected function getBaz6Service()
123     {
124         $this->services['baz6'] = $instance = new \stdClass();
125
126         $instance->bar6 = ${($_ = isset($this->services['bar6']) ? $this->services['bar6'] : $this->getBar6Service()) && false ?: '_'};
127
128         return $instance;
129     }
130
131     /**
132      * Gets the public 'connection' shared service.
133      *
134      * @return \stdClass
135      */
136     protected function getConnectionService()
137     {
138         $a = new \stdClass();
139
140         $b = new \stdClass();
141
142         $this->services['connection'] = $instance = new \stdClass($a, $b);
143
144         $a->subscriber = ${($_ = isset($this->services['subscriber']) ? $this->services['subscriber'] : $this->getSubscriberService()) && false ?: '_'};
145
146         $b->logger = ${($_ = isset($this->services['logger']) ? $this->services['logger'] : $this->getLoggerService()) && false ?: '_'};
147
148         return $instance;
149     }
150
151     /**
152      * Gets the public 'connection2' shared service.
153      *
154      * @return \stdClass
155      */
156     protected function getConnection2Service()
157     {
158         $a = new \stdClass();
159
160         $c = new \stdClass();
161
162         $this->services['connection2'] = $instance = new \stdClass($a, $c);
163
164         $b = ${($_ = isset($this->services['manager2']) ? $this->services['manager2'] : $this->getManager2Service()) && false ?: '_'};
165
166         $a->subscriber2 = new \stdClass($b);
167
168         $d = new \stdClass($instance);
169
170         $d->handler2 = new \stdClass($b);
171
172         $c->logger2 = $d;
173
174         return $instance;
175     }
176
177     /**
178      * Gets the public 'foo' shared service.
179      *
180      * @return \FooCircular
181      */
182     protected function getFooService()
183     {
184         $a = new \BarCircular();
185
186         $this->services['foo'] = $instance = new \FooCircular($a);
187
188         $a->addFoobar(new \FoobarCircular($instance));
189
190         return $instance;
191     }
192
193     /**
194      * Gets the public 'foo2' shared service.
195      *
196      * @return \FooCircular
197      */
198     protected function getFoo2Service()
199     {
200         $a = ${($_ = isset($this->services['bar2']) ? $this->services['bar2'] : $this->getBar2Service()) && false ?: '_'};
201
202         if (isset($this->services['foo2'])) {
203             return $this->services['foo2'];
204         }
205
206         return $this->services['foo2'] = new \FooCircular($a);
207     }
208
209     /**
210      * Gets the public 'foo5' shared service.
211      *
212      * @return \stdClass
213      */
214     protected function getFoo5Service()
215     {
216         $this->services['foo5'] = $instance = new \stdClass();
217
218         $a = new \stdClass($instance);
219
220         $a->foo = $instance;
221
222         $instance->bar = $a;
223
224         return $instance;
225     }
226
227     /**
228      * Gets the public 'foo6' shared service.
229      *
230      * @return \stdClass
231      */
232     protected function getFoo6Service()
233     {
234         $this->services['foo6'] = $instance = new \stdClass();
235
236         $instance->bar6 = ${($_ = isset($this->services['bar6']) ? $this->services['bar6'] : $this->getBar6Service()) && false ?: '_'};
237
238         return $instance;
239     }
240
241     /**
242      * Gets the public 'foobar4' shared service.
243      *
244      * @return \stdClass
245      */
246     protected function getFoobar4Service()
247     {
248         $a = new \stdClass();
249
250         $this->services['foobar4'] = $instance = new \stdClass($a);
251
252         $a->foobar = $instance;
253
254         return $instance;
255     }
256
257     /**
258      * Gets the public 'logger' shared service.
259      *
260      * @return \stdClass
261      */
262     protected function getLoggerService()
263     {
264         $a = ${($_ = isset($this->services['connection']) ? $this->services['connection'] : $this->getConnectionService()) && false ?: '_'};
265
266         if (isset($this->services['logger'])) {
267             return $this->services['logger'];
268         }
269
270         $this->services['logger'] = $instance = new \stdClass($a);
271
272         $instance->handler = new \stdClass(${($_ = isset($this->services['manager']) ? $this->services['manager'] : $this->getManagerService()) && false ?: '_'});
273
274         return $instance;
275     }
276
277     /**
278      * Gets the public 'manager' shared service.
279      *
280      * @return \stdClass
281      */
282     protected function getManagerService()
283     {
284         $a = ${($_ = isset($this->services['connection']) ? $this->services['connection'] : $this->getConnectionService()) && false ?: '_'};
285
286         if (isset($this->services['manager'])) {
287             return $this->services['manager'];
288         }
289
290         return $this->services['manager'] = new \stdClass($a);
291     }
292
293     /**
294      * Gets the public 'manager2' shared service.
295      *
296      * @return \stdClass
297      */
298     protected function getManager2Service()
299     {
300         $a = ${($_ = isset($this->services['connection2']) ? $this->services['connection2'] : $this->getConnection2Service()) && false ?: '_'};
301
302         if (isset($this->services['manager2'])) {
303             return $this->services['manager2'];
304         }
305
306         return $this->services['manager2'] = new \stdClass($a);
307     }
308
309     /**
310      * Gets the public 'subscriber' shared service.
311      *
312      * @return \stdClass
313      */
314     protected function getSubscriberService()
315     {
316         $a = ${($_ = isset($this->services['manager']) ? $this->services['manager'] : $this->getManagerService()) && false ?: '_'};
317
318         if (isset($this->services['subscriber'])) {
319             return $this->services['subscriber'];
320         }
321
322         return $this->services['subscriber'] = new \stdClass($a);
323     }
324
325     /**
326      * Gets the private 'bar6' shared service.
327      *
328      * @return \stdClass
329      */
330     protected function getBar6Service()
331     {
332         $a = ${($_ = isset($this->services['foo6']) ? $this->services['foo6'] : $this->getFoo6Service()) && false ?: '_'};
333
334         if (isset($this->services['bar6'])) {
335             return $this->services['bar6'];
336         }
337
338         return $this->services['bar6'] = new \stdClass($a);
339     }
340 }