简体   繁体   English

防火墙问题 symfony 6. 错误:Class "" used for service "security.listener.user_checker.integration" 找不到

[英]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.

相关问题 Symfony2 FOSUserBundle-您已请求一个不存在的服务“ security.user_checker” - Symfony2 FOSUserBundle - You have requested a non-existent service “security.user_checker” Silex / Symfony安全防火墙访问安全区域之外的用户令牌 - Silex/Symfony Security Firewall Access user token outside the secured area Symfony 2事件侦听器-身份验证失败/防火墙侦听器 - Symfony 2 event listener - on authentication fail / firewall listener 在symfony2中用作服务的sphinx php API类错误 - Error with sphinx php api class used in symfony2 as a service Symfony3创建服务错误文件,但未找到类 - Symfony3 Creating Service Error File Found but Class Not in it Symfony:从与当前请求中使用的防火墙不同的防火墙检索用户 - Symfony: Retrieve user from a different firewall than the firewall being used in the current request 具有授权检查程序的Symfony kernel.response侦听器 - Symfony kernel.response listener with authorization checker 来自 3.2 的 Symfony 3.3:编译错误:无法声明类 Symfony\\Bundle\\SecurityBundle\\Security\\FirewallMap - Symfony 3.3 from 3.2: Compile Error: Cannot declare class Symfony\Bundle\SecurityBundle\Security\FirewallMap Symfony 3 - 在我的服务参数中添加 security.authorization_checker 会导致重定向过多 - Symfony 3 - Add security.authorization_checker in my service 's args cause too many redirects Symfony3 security.exception_listener.class不起作用 - Symfony3 security.exception_listener.class not working
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM