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
< /code>
Итак, когда я запускаю сервер с помощью Symfony Server: start < /code> Все в порядке, но профилировщик не появляется. Я пропустил что -то, что позволяет этой функции в Symfony? Профилируется просто нет.
{% 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 %}
< /code>
security.yaml Firewall: < /p>
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 #
Результаты на PHP Bin /Console Debug: Router | grep _profiler < /code>: < /p>
_profiler_home ANY ANY ANY /_profiler/
_profiler_search ANY ANY ANY /_profiler/search
_profiler_search_bar ANY ANY ANY /_profiler/search_bar
_profiler_phpinfo ANY ANY ANY /_profiler/phpinfo
_profiler_search_results ANY ANY ANY /_profiler/{token}/search/results
_profiler_open_file ANY ANY ANY /_profiler/open
_profiler ANY ANY ANY /_profiler/{token}
_profiler_router ANY ANY ANY /_profiler/{token}/router
_profiler_exception ANY ANY ANY /_profiler/{token}/exception
_profiler_exception_css ANY ANY ANY /_profiler/{token}/exception.css
< /code>
< /code>
Добавлена public /index.php: < /p>
Подробнее здесь: https://stackoverflow.com/questions/585 ... fony-4-3-1