我无法通过symfony3进行注销.我一直在关注symfony文档
SecurityBundle Configuration,据我可以告诉我的配置文件接缝是有规格但是当我去/注销时我得到以下响应:
找不到“GET / logout”的路由(来自“http:// localhost:8000 / admin”).
关于我的问题可能是什么想法?
我的security.yml:
security: encoders: AppBundle\Entity\User: algorithm: bcrypt Symfony\Component\Security\Core\User\User: plaintext providers: chain_provider: chain: providers: [in_memory,database_provider] in_memory: memory: users: test: password: test roles: 'ROLE_ADMIN' admin: password: admin roles: 'ROLE_ADMIN' database_provider: entity: class: AppBundle:User property: email firewalls: dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false main: anonymous: true logout: true form_login: check_path: /login login_path: /login default_target_path: /login always_use_default_target_path: true logout: path: /logout target: /login