diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/route_1_link.txt b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/route_1_link.txt
index 8d86bc7be8ddb..4d4a18e5a71b8 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/route_1_link.txt
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/route_1_link.txt
@@ -10,7 +10,7 @@
| Method | GET|HEAD |
| Requirements | name: [a-z]+ |
| Class | Symfony\Bundle\FrameworkBundle\Tests\Console\Descriptor\RouteStub |
-[39;49m| Defaults | _controller: [39;49m]8;;myeditor://open?file=[:file:]&line=68\Symfony\Bundle\FrameworkBundle\Tests\Console\Descriptor\MyController::__invoke()]8;;\[39;49m |[39;49m
+[39;49m| Defaults | _controller: [39;49m]8;;myeditor://open?file=[:file:]&line=58\Symfony\Bundle\FrameworkBundle\Tests\Console\Descriptor\MyController::__invoke()]8;;\[39;49m |[39;49m
[39;49m| | [39;49mname: Joseph |
[39;49m| Options | compiler_class: Symfony\Component\Routing\RouteCompiler[39;49m[39;49m |[39;49m
[39;49m| | [39;49m[39;49mopt1: val1[39;49m[39;49m |[39;49m
diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/route_2_link.txt b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/route_2_link.txt
index a244b515cabbf..a690b9798d90a 100644
--- a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/route_2_link.txt
+++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Descriptor/route_2_link.txt
@@ -10,7 +10,7 @@
| Method | PUT|POST |
| Requirements | NO CUSTOM |
| Class | Symfony\Bundle\FrameworkBundle\Tests\Console\Descriptor\RouteStub |
-| Defaults | _controller: ]8;;myeditor://open?file=[:file:]&line=68\Symfony\Bundle\FrameworkBundle\Tests\Console\Descriptor\MyController::__invoke()]8;;\ |
+| Defaults | _controller: ]8;;myeditor://open?file=[:file:]&line=58\Symfony\Bundle\FrameworkBundle\Tests\Console\Descriptor\MyController::__invoke()]8;;\ |
[39;49m| Options | compiler_class: Symfony\Component\Routing\RouteCompiler[39;49m[39;49m |[39;49m
[39;49m| | [39;49m[39;49mopt1: val1[39;49m[39;49m |[39;49m
[39;49m| | [39;49mopt2: val2 |
diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php
index 93781ef3a5231..f1ce0a9aabef2 100644
--- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php
+++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php
@@ -529,8 +529,10 @@ private function createFirewall(ContainerBuilder $container, string $id, array $
$listeners[] = new Reference('security.firewall.authenticator.'.$id);
// Add authenticators to the debug:firewall command
- $debugCommand = $container->getDefinition('security.command.debug_firewall');
- $debugCommand->replaceArgument(3, array_merge($debugCommand->getArgument(3), [$id => $authenticators]));
+ if ($container->hasDefinition('security.command.debug_firewall')) {
+ $debugCommand = $container->getDefinition('security.command.debug_firewall');
+ $debugCommand->replaceArgument(3, array_merge($debugCommand->getArgument(3), [$id => $authenticators]));
+ }
}
$config->replaceArgument(7, $configuredEntryPoint ?: $defaultEntryPoint);
diff --git a/src/Symfony/Bundle/SecurityBundle/Resources/views/Collector/security.html.twig b/src/Symfony/Bundle/SecurityBundle/Resources/views/Collector/security.html.twig
index 9f69abcaf2d8e..910f4a7020718 100644
--- a/src/Symfony/Bundle/SecurityBundle/Resources/views/Collector/security.html.twig
+++ b/src/Symfony/Bundle/SecurityBundle/Resources/views/Collector/security.html.twig
@@ -6,8 +6,10 @@
{% if collector.token %}
{% set is_authenticated = collector.enabled and collector.authenticated %}
{% set color_code = is_authenticated ? '' : 'yellow' %}
+ {% elseif collector.enabled %}
+ {% set color_code = collector.authenticatorManagerEnabled ? 'yellow' : 'red' %}
{% else %}
- {% set color_code = collector.enabled ? 'red' : '' %}
+ {% set color_code = '' %}
{% endif %}
{% set icon %}
@@ -35,7 +37,7 @@
Authenticated
- {{ is_authenticated ? 'Yes' : 'No' }}
+ {{ is_authenticated ? 'Yes' : 'No' }}