-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
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
Access request in a menu listener #182
Comments
Can you paste the stack trace of the exception ? |
Sorry for the delay, here is the stack trace:
And the listener and the services.xml files are: |
Looks like you are facing symfony/symfony#7356 |
I wasn't sure of that so I open a new issue on the knpMenuBundle, just in case I made something wrong. Thanks anyway. |
EmmanuelVella
pushed a commit
to EmmanuelVella/KnpMenuBundle
that referenced
this issue
Sep 23, 2020
drop Symfony 2.2 support
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I am using this technic to make my menu.
I would like to access the request in the listener to check the route, and make some action if the route match some predefined routes.
I succeed to inject the requets in my listener, but I got this error:
I don't understand why I got this exception, and why even if I got this I can use the request in my listener.
I tried using "strict=false" in my services.xml but it didn't work.
It's a workaround for making a breadcrumb, waiting for a better solution with a BreadCrumbRenderer (see KnpLabs/KnpMenu#45 ).
The text was updated successfully, but these errors were encountered: