APP_ENV=dev
APP_DEBUG=true
В моем файле config/packages/dev/web_profiler.yaml у меня есть следующее:
web_profiler:
toolbar: true
intercept_redirects: false
framework:
profiler: { only_exceptions: false }
Маршрутизация в config/routes/dev/web_profiler.yaml кажется в порядке:
web_profiler_wdt:
resource: '@WebProfilerBundle/Resources/config/routing/wdt.xml'
prefix: /_wdt
web_profiler_profiler:
resource: '@WebProfilerBundle/Resources/config/routing/profiler.xml'
prefix: /_profiler
Итак, когда я запускаю сервер с помощью symfony server:start, все в порядке, но профилировщик не появляется. Я пропустил что-то, что включает эту функцию в Symfony?
Для ясности: страница выводит правильную HTML-страницу с соответствующим содержимым. Профилировщик просто не отображается.
Мой базовый шаблон ветки:
{% block title %} {% endblock %}
{{ encore_entry_script_tags('base') }}
{{ encore_entry_link_tags("base") }}
{% block stylesheet %}{% endblock %}
Our Mission
Our Team
Where the Money Goes
Community Leadership
Policies
{{ source('@public_path'~asset('build/images/icons/feedback.svg')) }}Submit Feedback
{% if app.request.get('_route') == 'creator-register' %}
{% else %}
{% if not is_granted('IS_AUTHENTICATED_FULLY') %}
{{ source('@public_path'~asset('build/images/icons/user.svg')) }}
Login
{% endif %}
{% endif %}
{% if app.request.get('_route') != 'home' %} {% endif %}
{% block body %} {% endblock %}
{% if app.request.get('_route') != 'home' %} {% endif %}
Брандмауэр Security.yaml:
firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
main:
anonymous: true
guard:
authenticators:
- App\Security\LoginFormAuthenticator
logout:
path : logout
remember_me:
secret: '%kernel.secret%'
lifetime: 2592000 #
Добавлен файл public/index.php:
Подробнее здесь: https://stackoverflow.com/questions/585 ... fony-4-3-1