8000 [Routing] Kernel params in collection prefix not working with the url matcher dumper · Issue #5780 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[Routing] Kernel params in collection prefix not working with the url matcher dumper #5780
Closed
@Tobion

Description

@Tobion

This still does not work with prefixes, it ends up writing the parameter to the UrlMatcher dump.
The routes end up working fine because the prefix is simply added to the pattern. However, in the PhpMatcherDumper, the prefix is obtained by using getPrefix() from the RouteCollection which has not been resolved, so any time there is more than one route you end up getting something like
if( 0 === strpos($pathinfo, '/%parameter_here%'){
The only thing I can see right now is added a setPrefix to RouteCollection, but that is very misleading because you can't exactly undo the route prefixes as it updates the patterns directly..

By @isometriks, from #4745 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0