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
duplicated routes #716
Comments
could you have a look at the test suite and see if you can replicate your issue by adding a test? |
I'm trying to create new symfony project from scratch to reproduce this bug and I can't reproduce yet. Anyway, with the last change in this repo, I get the same routes duplicated. |
yes. its fixed by #732 |
I have the same problem. I added custom route for count action brands_count:
pattern: /brands/count.{_format}
defaults: { _controller: ApiBundle:Brand:getCount, _format: json }
methods: [GET] and when I run php console debug:route brands_count GET ANY ANY /api/v2/brands/count.{_format}
get_count GET ANY ANY /api/v2/count.{_format} |
I'm not sure if i'm doing something wrong, but when I define a resource as rest type, and also in some of the controllers, override the default routing configuration and add routing annotations, the router:debug show duplicate routes with prefix and without prefix.
some example:
In searchController, I add some annotations:
In console, router:debug |grep searchExternal shows:
(I add options, i18n false, but adding also the route name begging with _ so the i18nRoutingBundle skip to process it).
It's some kind of bug or i'm doing something wrong?
Thanks,
Joan Teixidó
The text was updated successfully, but these errors were encountered: