We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sorry if I maybe understood something wrong, but I have issue after configuration like in documentation described. Problem is in the security.yml:
access_control: - { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/register, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/resetting, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/admin/, role: ROLE_ADMIN } - { path: ^/cabinet/, role: ROLE_USER }
We have to edit regular expression like this:
access_control: - { path: ^/(en|ru)login$, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/(en|ru)register, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/(en|ru)resetting, role: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/(en|ru)admin/, role: ROLE_ADMIN } - { path: ^/(en|ru)cabinet/, role: ROLE_USER }
This is not so pretty I think. Any workaround?
Thank you!
The text was updated successfully, but these errors were encountered:
There is a bundle for that: http://jmsyst.com/bundles/JMSI18nRoutingBundle
Sorry, something went wrong.
you want to close this @evgeny-s ?
yeap, thank you.
No branches or pull requests
Sorry if I maybe understood something wrong, but I have issue after configuration like in documentation described. Problem is in the security.yml:
We have to edit regular expression like this:
This is not so pretty I think. Any workaround?
Thank you!
The text was updated successfully, but these errors were encountered: