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