Added the Search API Synonym module to deal specifically with licence and license...
[yaffs-website] / vendor / symfony / dependency-injection / Tests / Fixtures / php / services_almost_circular_public.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_Public 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             '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',
48         );
49         $this->privates = array(
50             'bar6' => true,
51         );
52
53         $this->aliases = array();
54     }
55
56     public function getRemovedIds()
57     {
58         return array(
59             'Psr\\Container\\ContainerInterface' => true,
60             'Symfony\\Component\\DependencyInjection\\ContainerInterface' => true,
61             'bar2' => true,
62             'bar6' => true,
63             'config' => true,
64             'config2' => 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 'bar' shared service.
89      *
90      * @return \BarCircular
91      */
92     protected function getBarService()
93     {
94         $this->services['bar'] = $instance = new \BarCircular();
95
96         $instance->addFoobar(${($_ = isset($this->services['foobar']) ? $this->services['foobar'] : $this->getFoobarService()) && 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 = ${($_ = isset($this->services['foobar3']) ? $this->services['foobar3'] : $this->services['foobar3'] = new \FoobarCircular()) && false ?: '_'};
111
112         $instance->addFoobar($a, $a);
113
114         return $instance;
115     }
116
117     /**
118      * Gets the public 'bar5' shared service.
119      *
120      * @return \stdClass
121      */
122     protected function getBar5Service()
123     {
124         $a = ${($_ = isset($this->services['foo5']) ? $this->services['foo5'] : $this->getFoo5Service()) && false ?: '_'};
125
126         if (isset($this->services['bar5'])) {
127             return $this->services['bar5'];
128         }
129
130         $this->services['bar5'] = $instance = new \stdClass($a);
131
132         $instance->foo = $a;
133
134         return $instance;
135     }
136
137     /**
138      * Gets the public 'baz6' shared service.
139      *
140      * @return \stdClass
141      */
142     protected function getBaz6Service()
143     {
144         $this->services['baz6'] = $instance = new \stdClass();
145
146         $instance->bar6 = ${($_ = isset($this->services['bar6']) ? $this->services['bar6'] : $this->getBar6Service()) && false ?: '_'};
147
148         return $instance;
149     }
150
151     /**
152      * Gets the public 'connection' shared service.
153      *
154      * @return \stdClass
155      */
156     protected function getConnectionService()
157     {
158         $a = new \stdClass();
159
160         $this->services['connection'] = $instance = new \stdClass(${($_ = isset($this->services['dispatcher']) ? $this->services['dispatcher'] : $this->getDispatcherService()) && false ?: '_'}, $a);
161
162         $a->logger = ${($_ = isset($this->services['logger']) ? $this->services['logger'] : $this->getLoggerService()) && false ?: '_'};
163
164         return $instance;
165     }
166
167     /**
168      * Gets the public 'connection2' shared service.
169      *
170      * @return \stdClass
171      */
172     protected function getConnection2Service()
173     {
174         $a = new \stdClass();
175
176         $this->services['connection2'] = $instance = new \stdClass(${($_ = isset($this->services['dispatcher2']) ? $this->services['dispatcher2'] : $this->getDispatcher2Service()) && false ?: '_'}, $a);
177
178         $b = new \stdClass($instance);
179
180         $b->handler2 = new \stdClass(${($_ = isset($this->services['manager2']) ? $this->services['manager2'] : $this->getManager2Service()) && false ?: '_'});
181
182         $a->logger2 = $b;
183
184         return $instance;
185     }
186
187     /**
188      * Gets the public 'dispatcher' shared service.
189      *
190      * @return \stdClass
191      */
192     protected function getDispatcherService($lazyLoad = true)
193     {
194         $this->services['dispatcher'] = $instance = new \stdClass();
195
196         $instance->subscriber = ${($_ = isset($this->services['subscriber']) ? $this->services['subscriber'] : $this->getSubscriberService()) && false ?: '_'};
197
198         return $instance;
199     }
200
201     /**
202      * Gets the public 'dispatcher2' shared service.
203      *
204      * @return \stdClass
205      */
206     protected function getDispatcher2Service($lazyLoad = true)
207     {
208         $this->services['dispatcher2'] = $instance = new \stdClass();
209
210         $instance->subscriber2 = new \stdClass(${($_ = isset($this->services['manager2']) ? $this->services['manager2'] : $this->getManager2Service()) && false ?: '_'});
211
212         return $instance;
213     }
214
215     /**
216      * Gets the public 'foo' shared service.
217      *
218      * @return \FooCircular
219      */
220     protected function getFooService()
221     {
222         $a = ${($_ = isset($this->services['bar']) ? $this->services['bar'] : $this->getBarService()) && false ?: '_'};
223
224         if (isset($this->services['foo'])) {
225             return $this->services['foo'];
226         }
227
228         return $this->services['foo'] = new \FooCircular($a);
229     }
230
231     /**
232      * Gets the public 'foo2' shared service.
233      *
234      * @return \FooCircular
235      */
236     protected function getFoo2Service()
237     {
238         $a = new \BarCircular();
239
240         $this->services['foo2'] = $instance = new \FooCircular($a);
241
242         $a->addFoobar(${($_ = isset($this->services['foobar2']) ? $this->services['foobar2'] : $this->getFoobar2Service()) && false ?: '_'});
243
244         return $instance;
245     }
246
247     /**
248      * Gets the public 'foo4' service.
249      *
250      * @return \stdClass
251      */
252     protected function getFoo4Service()
253     {
254         $instance = new \stdClass();
255
256         $instance->foobar = ${($_ = isset($this->services['foobar4']) ? $this->services['foobar4'] : $this->getFoobar4Service()) && false ?: '_'};
257
258         return $instance;
259     }
260
261     /**
262      * Gets the public 'foo5' shared service.
263      *
264      * @return \stdClass
265      */
266     protected function getFoo5Service()
267     {
268         $this->services['foo5'] = $instance = new \stdClass();
269
270         $instance->bar = ${($_ = isset($this->services['bar5']) ? $this->services['bar5'] : $this->getBar5Service()) && false ?: '_'};
271
272         return $instance;
273     }
274
275     /**
276      * Gets the public 'foo6' shared service.
277      *
278      * @return \stdClass
279      */
280     protected function getFoo6Service()
281     {
282         $this->services['foo6'] = $instance = new \stdClass();
283
284         $instance->bar6 = ${($_ = isset($this->services['bar6']) ? $this->services['bar6'] : $this->getBar6Service()) && false ?: '_'};
285
286         return $instance;
287     }
288
289     /**
290      * Gets the public 'foobar' shared service.
291      *
292      * @return \FoobarCircular
293      */
294     protected function getFoobarService()
295     {
296         $a = ${($_ = isset($this->services['foo']) ? $this->services['foo'] : $this->getFooService()) && false ?: '_'};
297
298         if (isset($this->services['foobar'])) {
299             return $this->services['foobar'];
300         }
301
302         return $this->services['foobar'] = new \FoobarCircular($a);
303     }
304
305     /**
306      * Gets the public 'foobar2' shared service.
307      *
308      * @return \FoobarCircular
309      */
310     protected function getFoobar2Service()
311     {
312         $a = ${($_ = isset($this->services['foo2']) ? $this->services['foo2'] : $this->getFoo2Service()) && false ?: '_'};
313
314         if (isset($this->services['foobar2'])) {
315             return $this->services['foobar2'];
316         }
317
318         return $this->services['foobar2'] = new \FoobarCircular($a);
319     }
320
321     /**
322      * Gets the public 'foobar3' shared service.
323      *
324      * @return \FoobarCircular
325      */
326     protected function getFoobar3Service()
327     {
328         return $this->services['foobar3'] = new \FoobarCircular();
329     }
330
331     /**
332      * Gets the public 'foobar4' shared service.
333      *
334      * @return \stdClass
335      */
336     protected function getFoobar4Service()
337     {
338         $a = new \stdClass();
339
340         $this->services['foobar4'] = $instance = new \stdClass($a);
341
342         $a->foobar = $instance;
343
344         return $instance;
345     }
346
347     /**
348      * Gets the public 'logger' shared service.
349      *
350      * @return \stdClass
351      */
352     protected function getLoggerService()
353     {
354         $a = ${($_ = isset($this->services['connection']) ? $this->services['connection'] : $this->getConnectionService()) && false ?: '_'};
355
356         if (isset($this->services['logger'])) {
357             return $this->services['logger'];
358         }
359
360         $this->services['logger'] = $instance = new \stdClass($a);
361
362         $instance->handler = new \stdClass(${($_ = isset($this->services['manager']) ? $this->services['manager'] : $this->getManagerService()) && false ?: '_'});
363
364         return $instance;
365     }
366
367     /**
368      * Gets the public 'manager' shared service.
369      *
370      * @return \stdClass
371      */
372     protected function getManagerService()
373     {
374         $a = ${($_ = isset($this->services['connection']) ? $this->services['connection'] : $this->getConnectionService()) && false ?: '_'};
375
376         if (isset($this->services['manager'])) {
377             return $this->services['manager'];
378         }
379
380         return $this->services['manager'] = new \stdClass($a);
381     }
382
383     /**
384      * Gets the public 'manager2' shared service.
385      *
386      * @return \stdClass
387      */
388     protected function getManager2Service()
389     {
390         $a = ${($_ = isset($this->services['connection2']) ? $this->services['connection2'] : $this->getConnection2Service()) && false ?: '_'};
391
392         if (isset($this->services['manager2'])) {
393             return $this->services['manager2'];
394         }
395
396         return $this->services['manager2'] = new \stdClass($a);
397     }
398
399     /**
400      * Gets the public 'subscriber' shared service.
401      *
402      * @return \stdClass
403      */
404     protected function getSubscriberService()
405     {
406         return $this->services['subscriber'] = new \stdClass(${($_ = isset($this->services['manager']) ? $this->services['manager'] : $this->getManagerService()) && false ?: '_'});
407     }
408
409     /**
410      * Gets the private 'bar6' shared service.
411      *
412      * @return \stdClass
413      */
414     protected function getBar6Service()
415     {
416         $a = ${($_ = isset($this->services['foo6']) ? $this->services['foo6'] : $this->getFoo6Service()) && false ?: '_'};
417
418         if (isset($this->services['bar6'])) {
419             return $this->services['bar6'];
420         }
421
422         return $this->services['bar6'] = new \stdClass($a);
423     }
424 }