[英]Troubles with firewall symfony 6. Error: Class "" used for service "security.listener.user_checker.integration" cannot be found
I'm trying to update symfony from 3.4 to 6.0.1我正在尝试将 symfony 从 3.4 更新到 6.0.1
And i got an error我得到了一个错误
Class "" used for service "security.listener.user_checker.integration" cannot be found.
I have this error for each blocks in firewalls section我在防火墙部分的每个块都有这个错误
integration:
pattern: ^/integration
host: %base_host%
stateless: true
custom_authenticators:
- integration.authenticator.token
provider: integration_provider
I checked https://github.com/symfony/symfony/blob/6.0/src/Symfony/Component/EventDispatcher/DependencyInjection/RegisterListenersPass.php#L119我检查了https://github.com/symfony/symfony/blob/6.0/src/Symfony/Component/EventDispatcher/DependencyInjection/RegisterListenersPass.php#L119
and和
https://github.com/symfony/symfony/blob/6.0/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php#L472 https://github.com/symfony/symfony/blob/6.0/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php#L472
So ChildDefinition has no class(but has parent)所以 ChildDefinition 没有类(但有父类)
And I can't understand how it should work.而且我不明白它应该如何工作。 Which class should be returned in RegisterListenersPass and where it should be set
哪个 class 应该在 RegisterListenersPass 中返回,应该在哪里设置
I found a temporary solution.我找到了一个临时解决方案。 It does not resolve the base problem, and I still want to figure out with my problem.
它不能解决基本问题,我仍然想弄清楚我的问题。
But now I can describe service like但现在我可以将服务描述为
security.listener.user_checker.integration:
class: Symfony\Component\Security\Http\EventListener\UserCheckerListener
And the error gone.并且错误消失了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.