php - Symfony2 sudenly login route not found -
this morning wrote new functions on controller , worked after 10 minutes trying access 1 of methods symfony says me: "no route found "get /login", , if seek have access app.php says me same exception.
in project utilize routing through @route , through routing.yml file
below i'll show configurations
routing's fileapp/config/routing.yml
frab: resource: "@frabapibundle/resources/config/routing.yml"
frab_routting: resource: "@frabapibundle/controller" type: annotation prefix: /
fos_user_security: resource: "@fosuserbundle/resources/config/routing/security.xml" prefix: admin fos_user_profile: resource: "@fosuserbundle/resources/config/routing/profile.xml" prefix: /profile
fos_user_register: resource: "@fosuserbundle/resources/config/routing/registration.xml" prefix: /register
fos_user_resetting: resource: "@fosuserbundle/resources/config/routing/resetting.xml" prefix: /resetting
fos_user_change_password: resource: "@fosuserbundle/resources/config/routing/change_password.xml" prefix: /profile
security's fileapp/config/security.yml
security: encoders: fos\userbundle\model\userinterface: sha512
role_hierarchy: role_admin: role_user role_super_admin: [role_user, role_admin, role_allowed_to_switch] providers: fos_userbundle: id: fos_user.user_provider.username id: fos_user.user_provider.username_email firewalls: dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false dashboard: pattern: ^/ security: true form_login: provider: fos_userbundle check_path: /admin/login_check login_path: /login default_target_path: /ds csrf_provider: form.csrf_provider logout: path: /ds/logout target: /ds anonymous: ~ access_control: - { path: ^/, roles: is_authenticated_anonymously, requires_channel: http } - { path: ^/ds, roles: role_super_admin, requires_channel: http } - { path: ^/ds/users, roles: role_super_admin, requires_channel: http } - { path: ^/ds/groups, roles: role_super_admin, requires_channel: http } - { path: ^/ds/photos, roles: role_super_admin, requires_channel: http } - { path: ^/ds/mail, roles: role_super_admin, requires_channel: http } - { path: ^/ds/sendmail, roles: role_super_admin, requires_channel: http } - { path: ^/login, roles: is_authenticated_anonymously, requires_channel: http } - { path: ^/login_check, roles: is_authenticated_anonymously, requires_channel: http }
what can do?
you've added admin
prefix @fosuserbundle/resources/config/routing/security.xml
resource login path (fos_user_security_login
) @ /admin/login
.
php symfony2 exception login
No comments:
Post a Comment