Skip to content

Commit

Permalink
Revert "minor #35559 [FrameworkBundle] remove mention of the old Cont…
Browse files Browse the repository at this point in the history
…roller class (nicolas-grekas)"

This reverts commit 6bb6473, reversing
changes made to 4cce23d.
  • Loading branch information
nicolas-grekas committed Mar 10, 2020
1 parent 8c778cb commit 15570cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -51,6 +51,8 @@ public function process(ContainerBuilder $container)
}
}
if (!$reason) {
$controllers[$id.':'.$action] = $argumentRef;

if ('__invoke' === $action) {
$controllers[$id] = $argumentRef;
}
Expand Down
Expand Up @@ -49,7 +49,7 @@ public function testProcess()

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

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

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

$this->assertEquals(
['invokable::__invoke', 'invokable'],
['invokable::__invoke', 'invokable:__invoke', 'invokable'],
array_keys($container->getDefinition((string) $resolver->getArgument(0))->getArgument(0))
);
}
Expand Down

0 comments on commit 15570cd

Please sign in to comment.