7aa1bff87069a95fa3a2e28d824224268fa237f2
[yaffs-website] / vendor / symfony / dependency-injection / Tests / Fixtures / php / services_legacy_privates.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_Legacy_Privates extends Container
18 {
19     private $parameters;
20     private $targetDirs = array();
21
22     public function __construct()
23     {
24         $dir = __DIR__;
25         for ($i = 1; $i <= 5; ++$i) {
26             $this->targetDirs[$i] = $dir = \dirname($dir);
27         }
28         $this->services = array();
29         $this->methodMap = array(
30             'bar' => 'getBarService',
31             'private' => 'getPrivateService',
32             'private_alias' => 'getPrivateAliasService',
33             'private_alias_decorator' => 'getPrivateAliasDecoratorService',
34             'private_child' => 'getPrivateChildService',
35             'private_decorator' => 'getPrivateDecoratorService',
36             'private_not_inlined' => 'getPrivateNotInlinedService',
37             'private_not_removed' => 'getPrivateNotRemovedService',
38             'private_parent' => 'getPrivateParentService',
39             'public_child' => 'getPublicChildService',
40         );
41         $this->privates = array(
42             'decorated_private' => true,
43             'decorated_private_alias' => true,
44             'private' => true,
45             'private_alias' => true,
46             'private_child' => true,
47             'private_not_inlined' => true,
48             'private_not_removed' => true,
49             'private_parent' => true,
50         );
51         $this->aliases = array(
52             'alias_to_private' => 'private',
53             'decorated_private' => 'private_decorator',
54             'decorated_private_alias' => 'private_alias_decorator',
55         );
56     }
57
58     public function getRemovedIds()
59     {
60         return array(
61             'Psr\\Container\\ContainerInterface' => true,
62             'Symfony\\Component\\DependencyInjection\\ContainerInterface' => true,
63             'decorated_private' => true,
64             'decorated_private_alias' => true,
65             'foo' => true,
66             'private' => true,
67             'private_alias' => true,
68             'private_alias_decorator.inner' => true,
69             'private_child' => true,
70             'private_decorator.inner' => true,
71             'private_not_inlined' => true,
72             'private_not_removed' => true,
73             'private_parent' => true,
74         );
75     }
76
77     public function compile()
78     {
79         throw new LogicException('You cannot compile a dumped container that was already compiled.');
80     }
81
82     public function isCompiled()
83     {
84         return true;
85     }
86
87     public function isFrozen()
88     {
89         @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);
90
91         return true;
92     }
93
94     /**
95      * Gets the public 'bar' shared service.
96      *
97      * @return \stdClass
98      */
99     protected function getBarService()
100     {
101         return $this->services['bar'] = new \stdClass(${($_ = isset($this->services['private_not_inlined']) ? $this->services['private_not_inlined'] : $this->services['private_not_inlined'] = new \stdClass()) && false ?: '_'});
102     }
103
104     /**
105      * Gets the public 'private_alias_decorator' shared service.
106      *
107      * @return \stdClass
108      */
109     protected function getPrivateAliasDecoratorService()
110     {
111         return $this->services['private_alias_decorator'] = new \stdClass();
112     }
113
114     /**
115      * Gets the public 'private_decorator' shared service.
116      *
117      * @return \stdClass
118      */
119     protected function getPrivateDecoratorService()
120     {
121         return $this->services['private_decorator'] = new \stdClass();
122     }
123
124     /**
125      * Gets the public 'public_child' shared service.
126      *
127      * @return \stdClass
128      */
129     protected function getPublicChildService()
130     {
131         return $this->services['public_child'] = new \stdClass();
132     }
133
134     /**
135      * Gets the private 'private' shared service.
136      *
137      * @return \stdClass
138      */
139     protected function getPrivateService()
140     {
141         return $this->services['private'] = new \stdClass();
142     }
143
144     /**
145      * Gets the private 'private_alias' shared service.
146      *
147      * @return \stdClass
148      */
149     protected function getPrivateAliasService()
150     {
151         return $this->services['private_alias'] = new \stdClass();
152     }
153
154     /**
155      * Gets the private 'private_child' shared service.
156      *
157      * @return \stdClass
158      */
159     protected function getPrivateChildService()
160     {
161         return $this->services['private_child'] = new \stdClass();
162     }
163
164     /**
165      * Gets the private 'private_not_inlined' shared service.
166      *
167      * @return \stdClass
168      */
169     protected function getPrivateNotInlinedService()
170     {
171         return $this->services['private_not_inlined'] = new \stdClass();
172     }
173
174     /**
175      * Gets the private 'private_not_removed' shared service.
176      *
177      * @return \stdClass
178      */
179     protected function getPrivateNotRemovedService()
180     {
181         return $this->services['private_not_removed'] = new \stdClass();
182     }
183
184     /**
185      * Gets the private 'private_parent' shared service.
186      *
187      * @return \stdClass
188      */
189     protected function getPrivateParentService()
190     {
191         return $this->services['private_parent'] = new \stdClass();
192     }
193 }