Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / symfony / dependency-injection / Tests / Fixtures / php / services_locator.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 ProjectServiceContainer 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_service' => 'getBarServiceService',
27             'baz_service' => 'getBazServiceService',
28             'foo_service' => 'getFooServiceService',
29             'translator.loader_1' => 'getTranslator_Loader1Service',
30             'translator.loader_2' => 'getTranslator_Loader2Service',
31             'translator.loader_3' => 'getTranslator_Loader3Service',
32             'translator_1' => 'getTranslator1Service',
33             'translator_2' => 'getTranslator2Service',
34             'translator_3' => 'getTranslator3Service',
35         );
36         $this->privates = array(
37             'baz_service' => true,
38         );
39
40         $this->aliases = array();
41     }
42
43     public function getRemovedIds()
44     {
45         return array(
46             'Psr\\Container\\ContainerInterface' => true,
47             'Symfony\\Component\\DependencyInjection\\ContainerInterface' => true,
48             'baz_service' => true,
49             'translator.loader_1_locator' => true,
50             'translator.loader_2_locator' => true,
51             'translator.loader_3_locator' => true,
52         );
53     }
54
55     public function compile()
56     {
57         throw new LogicException('You cannot compile a dumped container that was already compiled.');
58     }
59
60     public function isCompiled()
61     {
62         return true;
63     }
64
65     public function isFrozen()
66     {
67         @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);
68
69         return true;
70     }
71
72     /**
73      * Gets the public 'bar_service' shared service.
74      *
75      * @return \stdClass
76      */
77     protected function getBarServiceService()
78     {
79         return $this->services['bar_service'] = new \stdClass(${($_ = isset($this->services['baz_service']) ? $this->services['baz_service'] : $this->services['baz_service'] = new \stdClass()) && false ?: '_'});
80     }
81
82     /**
83      * Gets the public 'foo_service' shared service.
84      *
85      * @return \Symfony\Component\DependencyInjection\ServiceLocator
86      */
87     protected function getFooServiceService()
88     {
89         return $this->services['foo_service'] = new \Symfony\Component\DependencyInjection\ServiceLocator(array('bar' => function () {
90             return ${($_ = isset($this->services['bar_service']) ? $this->services['bar_service'] : $this->getBarServiceService()) && false ?: '_'};
91         }, 'baz' => function () {
92             $f = function (\stdClass $v) { return $v; }; return $f(${($_ = isset($this->services['baz_service']) ? $this->services['baz_service'] : $this->services['baz_service'] = new \stdClass()) && false ?: '_'});
93         }, 'nil' => function () {
94             return NULL;
95         }));
96     }
97
98     /**
99      * Gets the public 'translator.loader_1' shared service.
100      *
101      * @return \stdClass
102      */
103     protected function getTranslator_Loader1Service()
104     {
105         return $this->services['translator.loader_1'] = new \stdClass();
106     }
107
108     /**
109      * Gets the public 'translator.loader_2' shared service.
110      *
111      * @return \stdClass
112      */
113     protected function getTranslator_Loader2Service()
114     {
115         return $this->services['translator.loader_2'] = new \stdClass();
116     }
117
118     /**
119      * Gets the public 'translator.loader_3' shared service.
120      *
121      * @return \stdClass
122      */
123     protected function getTranslator_Loader3Service()
124     {
125         return $this->services['translator.loader_3'] = new \stdClass();
126     }
127
128     /**
129      * Gets the public 'translator_1' shared service.
130      *
131      * @return \Symfony\Component\DependencyInjection\Tests\Fixtures\StubbedTranslator
132      */
133     protected function getTranslator1Service()
134     {
135         return $this->services['translator_1'] = new \Symfony\Component\DependencyInjection\Tests\Fixtures\StubbedTranslator(new \Symfony\Component\DependencyInjection\ServiceLocator(array('translator.loader_1' => function () {
136             return ${($_ = isset($this->services['translator.loader_1']) ? $this->services['translator.loader_1'] : $this->services['translator.loader_1'] = new \stdClass()) && false ?: '_'};
137         })));
138     }
139
140     /**
141      * Gets the public 'translator_2' shared service.
142      *
143      * @return \Symfony\Component\DependencyInjection\Tests\Fixtures\StubbedTranslator
144      */
145     protected function getTranslator2Service()
146     {
147         $this->services['translator_2'] = $instance = new \Symfony\Component\DependencyInjection\Tests\Fixtures\StubbedTranslator(new \Symfony\Component\DependencyInjection\ServiceLocator(array('translator.loader_2' => function () {
148             return ${($_ = isset($this->services['translator.loader_2']) ? $this->services['translator.loader_2'] : $this->services['translator.loader_2'] = new \stdClass()) && false ?: '_'};
149         })));
150
151         $instance->addResource('db', ${($_ = isset($this->services['translator.loader_2']) ? $this->services['translator.loader_2'] : $this->services['translator.loader_2'] = new \stdClass()) && false ?: '_'}, 'nl');
152
153         return $instance;
154     }
155
156     /**
157      * Gets the public 'translator_3' shared service.
158      *
159      * @return \Symfony\Component\DependencyInjection\Tests\Fixtures\StubbedTranslator
160      */
161     protected function getTranslator3Service()
162     {
163         $this->services['translator_3'] = $instance = new \Symfony\Component\DependencyInjection\Tests\Fixtures\StubbedTranslator(new \Symfony\Component\DependencyInjection\ServiceLocator(array('translator.loader_3' => function () {
164             return ${($_ = isset($this->services['translator.loader_3']) ? $this->services['translator.loader_3'] : $this->services['translator.loader_3'] = new \stdClass()) && false ?: '_'};
165         })));
166
167         $a = ${($_ = isset($this->services['translator.loader_3']) ? $this->services['translator.loader_3'] : $this->services['translator.loader_3'] = new \stdClass()) && false ?: '_'};
168
169         $instance->addResource('db', $a, 'nl');
170         $instance->addResource('db', $a, 'en');
171
172         return $instance;
173     }
174
175     /**
176      * Gets the private 'baz_service' shared service.
177      *
178      * @return \stdClass
179      */
180     protected function getBazServiceService()
181     {
182         return $this->services['baz_service'] = new \stdClass();
183     }
184 }