You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 3.3:
[DI] Resolve aliases earlier
[DI] Mark Container::$privates as internal
[DI] Minor dumping logic simplification
bumped Symfony version to 3.3.6
updated VERSION for 3.3.5
updated CHANGELOG for 3.3.5
bumped Symfony version to 3.2.13
updated VERSION for 3.2.12
updated CHANGELOG for 3.2.12
bumped Symfony version to 2.8.26
updated VERSION for 2.8.25
updated CHANGELOG for 2.8.25
bumped Symfony version to 2.7.33
updated VERSION for 2.7.32
update CONTRIBUTORS for 2.7.32
updated CHANGELOG for 2.7.32
Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Container.php
+15-11Lines changed: 15 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -56,10 +56,14 @@ class Container implements ResettableContainerInterface
56
56
57
57
protected$services = array();
58
58
protected$methodMap = array();
59
-
protected$privates = array();
60
59
protected$aliases = array();
61
60
protected$loading = array();
62
61
62
+
/**
63
+
* @internal
64
+
*/
65
+
protected$privates = array();
66
+
63
67
/**
64
68
* @internal
65
69
*/
@@ -221,15 +225,15 @@ public function has($id)
221
225
if (isset($this->privates[$id])) {
222
226
@trigger_error(sprintf('Checking for the existence of the "%s" private service is deprecated since Symfony 3.2 and won\'t be supported anymore in Symfony 4.0.', $id), E_USER_DEPRECATED);
223
227
}
224
-
if ('service_container' === $id) {
225
-
returntrue;
226
-
}
227
228
if (isset($this->aliases[$id])) {
228
229
$id = $this->aliases[$id];
229
230
}
230
231
if (isset($this->services[$id])) {
231
232
returntrue;
232
233
}
234
+
if ('service_container' === $id) {
235
+
returntrue;
236
+
}
233
237
234
238
if (isset($this->methodMap[$id])) {
235
239
returntrue;
@@ -279,9 +283,6 @@ public function get($id, $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE
279
283
if (isset($this->privates[$id])) {
280
284
@trigger_error(sprintf('Requesting the "%s" private service is deprecated since Symfony 3.2 and won\'t be supported anymore in Symfony 4.0.', $id), E_USER_DEPRECATED);
281
285
}
282
-
if ('service_container' === $id) {
283
-
return$this;
284
-
}
285
286
if (isset($this->aliases[$id])) {
286
287
$id = $this->aliases[$id];
287
288
}
@@ -290,6 +291,9 @@ public function get($id, $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE
@@ -352,10 +356,6 @@ public function initialized($id)
352
356
{
353
357
$id = $this->normalizeId($id);
354
358
355
-
if ('service_container' === $id) {
356
-
returnfalse;
357
-
}
358
-
359
359
if (isset($this->privates[$id])) {
360
360
@trigger_error(sprintf('Checking for the initialization of the "%s" private service is deprecated since Symfony 3.4 and won\'t be supported anymore in Symfony 4.0.', $id), E_USER_DEPRECATED);
361
361
}
@@ -364,6 +364,10 @@ public function initialized($id)
0 commit comments