Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ba6de87

Browse files
committed
bug #44130 [SecurityBundle] Remove outdated conditions based on authenticatorManagerEnabled (chalasr)
This PR was merged into the 6.0 branch. Discussion ---------- [SecurityBundle] Remove outdated conditions based on authenticatorManagerEnabled | Q | A | ------------- | --- | Branch? | 6.0 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - The authenticator manager must be enabled as of 6.0. https://github.com/symfony/symfony/blob/a1c9f1095e37977e7e9d65ee56be7378385b5c37/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php#L94 Commits ------- b87cda7 [SecurityBundle] Remove dead conditions based on authenticatorManagerEnabled
2 parents a1c9f10 + b87cda7 commit ba6de87

File tree

1 file changed

+5
-20
lines changed

1 file changed

+5
-20
lines changed

src/Symfony/Bundle/SecurityBundle/Resources/views/Collector/security.html.twig

+5-20
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
{% block toolbar %}
66
{% if collector.firewall %}
7-
{% set color_code = collector.enabled and not collector.authenticatorManagerEnabled ? 'yellow' %}
8-
97
{% set icon %}
108
{{ include('@Security/Collector/icon.svg') }}
119
<span class="sf-toolbar-value">{{ collector.user|default('n/a') }}</span>
@@ -85,7 +83,7 @@
8583
</div>
8684
{% endset %}
8785

88-
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url, status: color_code }) }}
86+
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url }) }}
8987
{% endif %}
9088
{% endblock %}
9189

@@ -176,12 +174,6 @@
176174
<span class="value">{{ include('@WebProfiler/Icon/' ~ (collector.firewall.stateless ? 'yes' : 'no') ~ '.svg') }}</span>
177175
<span class="label">Stateless</span>
178176
</div>
179-
{% if collector.authenticatorManagerEnabled == false %}
180-
<div class="metric">
181-
<span class="value">{{ include('@WebProfiler/Icon/' ~ (collector.firewall.allows_anonymous ? 'yes' : 'no') ~ '.svg') }}</span>
182-
<span class="label">Allows anonymous</span>
183-
</div>
184-
{% endif %}
185177
</div>
186178

187179
{% if collector.firewall.security_enabled %}
@@ -218,17 +210,10 @@
218210
<th>access_denied_url</th>
219211
<td>{{ collector.firewall.access_denied_url ?: '(none)' }}</td>
220212
</tr>
221-
{% if collector.authenticatorManagerEnabled %}
222-
<tr>
223-
<th>authenticators</th>
224-
<td>{{ collector.firewall.authenticators is empty ? '(none)' : profiler_dump(collector.firewall.authenticators, maxDepth=1) }}</td>
225-
</tr>
226-
{% else %}
227-
<tr>
228-
<th>listeners</th>
229-
<td>{{ collector.firewall.listeners is empty ? '(none)' : profiler_dump(collector.firewall.listeners, maxDepth=1) }}</td>
230-
</tr>
231-
{% endif %}
213+
<tr>
214+
<th>authenticators</th>
215+
<td>{{ collector.firewall.authenticators is empty ? '(none)' : profiler_dump(collector.firewall.authenticators, maxDepth=1) }}</td>
216+
</tr>
232217
</tbody>
233218
</table>
234219
{% endif %}

0 commit comments

Comments
 (0)