Skip to content

Custom functions in route condition cause error in WebProfiler #36985

@JakeFr

Description

@JakeFr

Symfony version(s) affected: 5.0.8

Description
Adding custom function (via tag routing.expression_language_provider) causes fatal error in the routing tab of the profiler: the function does not exist.
If the route does not match, no errors

How to reproduce
https://github.com/JakeFr/function-in-routing
query GET:/api?foo[bar]=baz
and go to the routing tab in profiler

Possible Solution
Related to the AddExpressionLanguageProvidersPass, UrlMatcher and TraceableUrlMatcher but i cant find how to fix

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions