Skip to content

Commit 0f85f7e

Browse files
[FrameworkBundle] remove mention of the old Controller class
1 parent ac45d95 commit 0f85f7e

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

DependencyInjection/RemoveEmptyControllerArgumentLocatorsPass.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ public function process(ContainerBuilder $container)
5151
}
5252
}
5353
if (!$reason) {
54-
// Deprecated since Symfony 4.1. See Symfony\Component\HttpKernel\Controller\ContainerControllerResolver
55-
$controllers[$id.':'.$action] = $argumentRef;
56-
5754
if ('__invoke' === $action) {
5855
$controllers[$id] = $argumentRef;
5956
}

Tests/DependencyInjection/RemoveEmptyControllerArgumentLocatorsPassTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function testProcess()
4949

5050
$controllers = $container->getDefinition((string) $resolver->getArgument(0))->getArgument(0);
5151

52-
$this->assertSame(['c1::fooAction', 'c1:fooAction'], array_keys($controllers));
52+
$this->assertSame(['c1::fooAction'], array_keys($controllers));
5353
$this->assertSame(['bar'], array_keys($container->getDefinition((string) $controllers['c1::fooAction']->getValues()[0])->getArgument(0)));
5454

5555
$expectedLog = [
@@ -73,7 +73,7 @@ public function testInvoke()
7373
(new RemoveEmptyControllerArgumentLocatorsPass())->process($container);
7474

7575
$this->assertEquals(
76-
['invokable::__invoke', 'invokable:__invoke', 'invokable'],
76+
['invokable::__invoke', 'invokable'],
7777
array_keys($container->getDefinition((string) $resolver->getArgument(0))->getArgument(0))
7878
);
7979
}

0 commit comments

Comments
 (0)