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/Compiler/RegisterServiceSubscribersPass.php
+1-1
Original file line number
Diff line number
Diff line change
@@ -94,7 +94,7 @@ protected function processValue($value, $isRoot = false)
94
94
thrownewInvalidArgumentException(sprintf('Service %s not exist in the map returned by "%s::getSubscribedServices()" for service "%s".', $message, $class, $this->currentId));
@@ -82,15 +83,15 @@ protected function getTestServiceSubscriberService()
82
83
*/
83
84
protectedfunctiongetFooServiceService()
84
85
{
85
-
return$this->services['foo_service'] = new \Symfony\Component\DependencyInjection\Tests\Fixtures\TestServiceSubscriber(new \Symfony\Component\DependencyInjection\ServiceLocator(array('Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CustomDefinition' => function () {
86
+
return$this->services['foo_service'] = new \Symfony\Component\DependencyInjection\Tests\Fixtures\TestServiceSubscriber(call_user_func(array(new \Symfony\Component\DependencyInjection\ServiceLocator(array('Symfony\\Component\\DependencyInjection\\Tests\\Fixtures\\CustomDefinition' => function () {
* @expectedExceptionMessage You have requested a non-existent service "dummy". Did you mean one of these: "foo", "bar"?
62
+
* @expectedExceptionMessage Service "dummy" not found: "Symfony\Component\DependencyInjection\Tests\ServiceLocatorTest" only knows about pre-listed services "foo", "bar".
63
63
*/
64
64
publicfunctiontestGetThrowsOnUndefinedService()
65
65
{
@@ -68,13 +68,7 @@ public function testGetThrowsOnUndefinedService()
0 commit comments