8000 updated RegisterControllerArgumentLocatorsPass and fixed CI issues · symfony/symfony@328bbfb · GitHub
[go: up one dir, main page]

Skip to content
10000

Commit 328bbfb

Browse files
updated RegisterControllerArgumentLocatorsPass and fixed CI issues
1 parent 958ff16 commit 328bbfb

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/Symfony/Component/DependencyInjection/Argument/BoundArgument.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ final class BoundArgument implements ArgumentInterface
2020
const DEFAULTS_BIND = 1;
2121
const INSTANCEOF_BIND = 2;
2222

23-
const MESSAGES = [
23+
public static $messages = [
2424
1 => 'under "_defaults"',
2525
2 => 'under "_instanceof"',
2626
];

src/Symfony/Component/DependencyInjection/Compiler/ResolveBindingsPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function process(ContainerBuilder $container)
4141
$message = sprintf('You have a "bind" configured for an argument named "%s" ', $key);
4242

4343
if ($type) {
44-
$message .= BoundArgument::MESSAGES[$type];
44+
$message .= BoundArgument::$messages[$type];
4545
} else {
4646
$message .= sprintf('in service "%s"', $serviceId);
4747
}

src/Symfony/Component/HttpKernel/DependencyInjection/RegisterControllerArgumentLocatorsPass.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Symfony\Component\HttpKernel\DependencyInjection;
1313

1414
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
15+
use Symfony\Component\DependencyInjection\Argument\BoundArgument;
1516
use Symfony\Component\DependencyInjection\ChildDefinition;
1617
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
1718
use Symfony\Component\DependencyInjection\Compiler\ServiceLocatorTagPass;
@@ -141,7 +142,7 @@ public function process(ContainerBuilder $container)
141142
continue;
142143
}
143144

144-
$binding->setValues([$bindingValue, $bindingId, true]);
145+
$binding->setValues([$bindingValue, $bindingId, true, BoundArgument::SERVICE_BIND, null]);
145146
$args[$p->name] = $bindingValue;
146147

147148
continue;

0 commit comments

Comments
 (0)
0