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
Copy file name to clipboardExpand all lines: Container.php
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -228,12 +228,12 @@ public function set($id, $service)
228
228
publicfunctionhas($id)
229
229
{
230
230
for ($i = 2;;) {
231
-
if ('service_container' === $id) {
232
-
returntrue;
233
-
}
234
231
if (isset($this->privates[$id])) {
235
232
@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);
236
233
}
234
+
if ('service_container' === $id) {
235
+
returntrue;
236
+
}
237
237
if (isset($this->aliases[$id])) {
238
238
$id = $this->aliases[$id];
239
239
}
@@ -286,15 +286,15 @@ public function get($id, $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE
286
286
// this method can be called thousands of times during a request, avoid
@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);
291
+
}
289
292
if ('service_container' === $id) {
290
293
return$this;
291
294
}
292
295
if (isset($this->aliases[$id])) {
293
296
$id = $this->aliases[$id];
294
297
}
295
-
if (isset($this->privates[$id])) {
296
-
@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);
0 commit comments