{% extends 'WebProfilerBundle:Profiler:layout.html.twig' %} {% block toolbar %} {% set icon %} Security {% endset %} {% set text %} {% if collector.user %} {{ collector.user }} {% if not collector.authenticated %}(not auth.){% endif %} {% elseif collector.enabled %} not authenticated {% else %} disabled {% endif %} {% endset %} {% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with { 'link': profiler_url } %} {% endblock %} {% block menu %} Security {% endblock %} {% block panel %}

Security

{% if collector.user %}
Username {{ collector.user }}
Authenticated? {% if collector.authenticated %} yes {% else %} no {% if not collector.roles|length %}(probably because the user has no roles){% endif %} {% endif %}
Roles {{ collector.roles|yaml_encode }}
{% elseif collector.enabled %}

No token

{% else %}

The security component is disabled

{% endif %} {% endblock %}