{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% block toolbar %} {% if 'unknown' == collector.symfonyState %} {% set block_status = '' %} {% set symfony_version_status = 'Unable to retrieve information about the Symfony version.' %} {% elseif 'eol' == collector.symfonyState %} {% set block_status = 'red' %} {% set symfony_version_status = 'This Symfony version will no longer receive security fixes.' %} {% elseif 'eom' == collector.symfonyState %} {% set block_status = 'yellow' %} {% set symfony_version_status = 'This Symfony version will only receive security fixes.' %} {% elseif 'dev' == collector.symfonyState %} {% set block_status = 'yellow' %} {% set symfony_version_status = 'This Symfony version is still in the development phase.' %} {% else %} {% set block_status = '' %} {% set symfony_version_status = '' %} {% endif %} {% set icon %} {% if collector.applicationname %} {{ collector.applicationname }} {{ collector.applicationversion }} {% elseif collector.symfonyState is defined %} {{ include('@WebProfiler/Icon/symfony.svg') }} {{ collector.symfonyversion }} {% endif %} {% endset %} {% set text %}
{% if collector.applicationname %}
{{ collector.applicationname }} {{ collector.applicationversion }}
{% endif %}
Profiler token {% if profiler_url %} {{ collector.token }} {% else %} {{ collector.token }} {% endif %}
{% if 'n/a' is not same as(collector.appname) %}
Kernel name {{ collector.appname }}
{% endif %} {% if 'n/a' is not same as(collector.env) %}
Environment {{ collector.env }}
{% endif %} {% if 'n/a' is not same as(collector.debug) %}
Debug {{ collector.debug ? 'enabled' : 'disabled' }}
{% endif %}
PHP version {{ collector.phpversion }}   View phpinfo()
PHP Extensions xdebug accel
PHP SAPI {{ collector.sapiName }}
{% if collector.symfonyversion is defined %}
Resources {% if 'Silex' == collector.applicationname %} Read Silex Docs {% else %} Read Symfony {{ collector.symfonyversion }} Docs {% endif %}
{% endif %}
{% endset %} {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: true, name: 'config', status: block_status, additional_classes: 'sf-toolbar-block-right', block_attrs: 'title="' ~ symfony_version_status ~ '"' }) }} {% endblock %} {% block menu %} {{ include('@WebProfiler/Icon/config.svg') }} Configuration {% endblock %} {% block panel %} {% if collector.applicationname %} {# this application is not the Symfony framework #}

Project Configuration

{{ collector.applicationname }} Application name
{{ collector.applicationversion }} Application version

Based on Symfony {{ collector.symfonyversion }}

{% else %}

Symfony Configuration

{{ collector.symfonyversion }} Symfony version
{% if 'n/a' != collector.appname %}
{{ collector.appname }} Application name
{% endif %} {% if 'n/a' != collector.env %}
{{ collector.env }} Environment
{% endif %} {% if 'n/a' != collector.debug %}
{{ collector.debug ? 'enabled' : 'disabled' }} Debug
{% endif %}
{% endif %}

PHP Configuration

{{ collector.phpversion }} PHP version
{{ include('@WebProfiler/Icon/' ~ (collector.hasaccelerator ? 'yes' : 'no') ~ '.svg') }} PHP acceleration
{{ include('@WebProfiler/Icon/' ~ (collector.hasxdebug ? 'yes' : 'no') ~ '.svg') }} Xdebug
{{ include('@WebProfiler/Icon/' ~ (collector.haszendopcache ? 'yes' : 'no') ~ '.svg') }} OPcache
{{ include('@WebProfiler/Icon/' ~ (collector.hasapc ? 'yes' : 'no') ~ '.svg') }} APC
{{ include('@WebProfiler/Icon/' ~ (collector.hasxcache ? 'yes' : 'no') ~ '.svg') }} XCache
{{ include('@WebProfiler/Icon/' ~ (collector.haseaccelerator ? 'yes' : 'no') ~ '.svg') }} EAccelerator

View full PHP configuration

{% if collector.bundles %}

Enabled Bundles ({{ collector.bundles|length }})

{% for name in collector.bundles|keys|sort %} {% endfor %}
Name Path
{{ name }} {{ collector.bundles[name] }}
{% endif %} {% endblock %}