Php 仅为管理员显示Symfony探查器
我只想为页面管理员(角色\超级\管理员)显示Symfony探查器栏(以及对探查器的访问) 我有以下指示: 但这是行不通的。我收到以下错误消息:Php 仅为管理员显示Symfony探查器,php,symfony,Php,Symfony,我只想为页面管理员(角色\超级\管理员)显示Symfony探查器栏(以及对探查器的访问) 我有以下指示: 但这是行不通的。我收到以下错误消息: AuthenticationCredentialsNotFoundException in classes.php line 2892: The token storage contains no authentication token. One possible reason may be that there is no firewall conf
AuthenticationCredentialsNotFoundException in classes.php line 2892:
The token storage contains no authentication token. One possible reason may be that there is no firewall configured for this URL.
有谁能帮我,或者知道这个错误消息吗
感谢您以后的回复 确保
security.yaml
中的dev
部分具有正确的参数
确保在security.yaml中取消注释以下行:
firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
之后,它应该可以正常工作。确保安全性中的dev
部分具有正确的参数
确保在security.yaml中取消注释以下行:
firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
在那里之后,它应该可以正常工作。您可以共享security.yml文件吗?似乎问题就在这里谢谢你的回复!这是一个粘贴箱:我已经发现了问题。以下几行需要取消注释:firewall:dev:pattern:^/(124;(profiler | wdt)| css | images | js)/security:false
您可以共享security.yml文件吗?似乎问题就在这里谢谢你的回复!这是一个粘贴箱:我已经发现了问题。以下几行需要取消注释:firewall:dev:pattern:^/(124;(profiler | wdt)| css | images | js)/security:false