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: src/Symfony/Component/DependencyInjection/Container.php
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -199,16 +199,16 @@ public function set($id, $service)
199
199
200
200
if (isset($this->privates[$id])) {
201
201
if (null === $service) {
202
-
@trigger_error(sprintf('Unsetting the "%s" private service is deprecated since Symfony 3.2 and won\'t be supported anymore in Symfony 4.0.', $id), E_USER_DEPRECATED);
202
+
@trigger_error(sprintf('The "%s" service is private, unsetting it is deprecated since Symfony 3.2 and will fail in 4.0.', $id), E_USER_DEPRECATED);
203
203
unset($this->privates[$id]);
204
204
} else {
205
-
@trigger_error(sprintf('Setting the "%s" private service is deprecated since Symfony 3.2 and won\'t be supported anymore in Symfony 4.0.', $id), E_USER_DEPRECATED);
205
+
@trigger_error(sprintf('The "%s" service is private, replacing it is deprecated since Symfony 3.2 and will fail in 4.0.', $id), E_USER_DEPRECATED);
@trigger_error(sprintf('Unsetting the "%s" service after it\'s been initializedis deprecated since Symfony 3.3 and won\'t be supported anymore in Symfony 4.0.', $id), E_USER_DEPRECATED);
209
+
@trigger_error(sprintf('The "%s" service is already initialized, unsetting it is deprecated since Symfony 3.3 and will fail in 4.0.', $id), E_USER_DEPRECATED);
210
210
} else {
211
-
@trigger_error(sprintf('Setting the "%s" service after it\'s been initializedis deprecated since Symfony 3.3 and won\'t be supported anymore in Symfony 4.0.', $id), E_USER_DEPRECATED);
211
+
@trigger_error(sprintf('The "%s" service is already initialized, replacing it is deprecated since Symfony 3.3 and will fail in 4.0.', $id), E_USER_DEPRECATED);
212
212
}
213
213
}
214
214
}
@@ -224,7 +224,7 @@ public function has($id)
224
224
{
225
225
for ($i = 2;;) {
226
226
if (isset($this->privates[$id])) {
227
-
@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);
227
+
@trigger_error(sprintf('The "%s" service is private, checking for its existence is deprecated since Symfony 3.2 and will fail in 4.0.', $id), E_USER_DEPRECATED);
228
228
}
229
229
if (isset($this->aliases[$id])) {
230
230
$id = $this->aliases[$id];
@@ -282,7 +282,7 @@ public function get($id, $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE
@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);
285
+
@trigger_error(sprintf('The "%s" service is private, getting it from the container is deprecated since Symfony 3.2 and will fail in 4.0. You should either make the service public, or stop getting services directly from the container and use dependency injection instead.', $id), E_USER_DEPRECATED);
Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Tests/ContainerTest.php
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -186,7 +186,7 @@ public function testSetReplacesAlias()
186
186
187
187
/**
188
188
* @group legacy
189
-
* @expectedDeprecation Unsetting the "bar" service after it's been initializedis deprecated since Symfony 3.3 and won't be supported anymore in Symfony 4.0.
189
+
* @expectedDeprecation The "bar" service is already initialized, unsetting it is deprecated since Symfony 3.3 and will fail in 4.0.
@@ -473,7 +473,7 @@ public function testChangeInternalPrivateServiceIsDeprecated()
473
473
474
474
/**
475
475
* @group legacy
476
-
* @expectedDeprecation Checking for the existence of the "internal" private service is deprecated since Symfony 3.2 and won't be supported anymore in Symfony 4.0.
476
+
* @expectedDeprecation The "internal" service is private, checking for its existence is deprecated since Symfony 3.2 and will fail in 4.0.
@@ -484,7 +484,7 @@ public function testCheckExistenceOfAnInternalPrivateServiceIsDeprecated()
484
484
485
485
/**
486
486
* @group legacy
487
-
* @expectedDeprecation Requesting the "internal" private service is deprecated since Symfony 3.2 and won't be supported anymore in Symfony 4.0.
487
+
* @expectedDeprecation The "internal" service is private, getting it from the container is deprecated since Symfony 3.2 and will fail in 4.0. You should either make the service public, or stop getting services directly from the container and use dependency injection instead.
@@ -495,7 +495,7 @@ public function testRequestAnInternalSharedPrivateServiceIsDeprecated()
495
495
496
496
/**
497
497
* @group legacy
498
-
* @expectedDeprecation Setting the "bar" service after it's been initializedis deprecated since Symfony 3.3 and won't be supported anymore in Symfony 4.0.
498
+
* @expectedDeprecation The "bar" service is already initialized, replacing it is deprecated since Symfony 3.3 and will fail in 4.0.
Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Tests/Dumper/PhpDumperTest.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -269,7 +269,7 @@ public function testFrozenContainerWithoutAliases()
269
269
270
270
/**
271
271
* @group legacy
272
-
* @expectedDeprecation Setting the "bar" service after it's been initializedis deprecated since Symfony 3.3 and won't be supported anymore in Symfony 4.0.
272
+
* @expectedDeprecation The "bar" service is already initialized, replacing it is deprecated since Symfony 3.3 and will fail in 4.0.
@@ -286,7 +286,7 @@ public function testOverrideServiceWhenUsingADumpedContainer()
286
286
287
287
/**
288
288
* @group legacy
289
-
* @expectedDeprecation Setting the "bar" service after it's been initializedis deprecated since Symfony 3.3 and won't be supported anymore in Symfony 4.0.
289
+
* @expectedDeprecation The "bar" service is already initialized, replacing it is deprecated since Symfony 3.3 and will fail in 4.0.
0 commit comments