Skip to content

[WebProfilerBundle] Fix error with custom function and web profiler routing tab #37102

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

Merged
merged 1 commit into from
Jul 31, 2020
Merged

[WebProfilerBundle] Fix error with custom function and web profiler routing tab #37102

merged 1 commit into from
Jul 31, 2020

Conversation

JakeFr
Copy link
Contributor

@JakeFr JakeFr commented Jun 4, 2020

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #36985
License MIT
Doc PR no

Here is a simple solution for #36985 as it only concerns WebProfilerBundle.

Due to the limitation in the routing tab as explained in the footnote, the route in my repo did not match in profiler (no query string in the new context) but there is no more syntax error.

*/
private $expressionLanguageProviders = [];

public function __construct(Profiler $profiler = null, Environment $twig, UrlMatcherInterface $matcher = null, iterable $expressionLanguageProviders = [], RouteCollection $routes = null)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can find where/when the $routes argument is set. So i add the new one just befrore

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add it last, that's a BC break otherwise

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do I define argument "$routes" in profiler.xml ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I declare routes explicitly to null

@nicolas-grekas nicolas-grekas changed the title Fix error with custom function and web profiler routing tab [WebProfilerBundle] Fix error with custom function and web profiler routing tab Jun 7, 2020
@nicolas-grekas nicolas-grekas added this to the 4.4 milestone Jun 7, 2020
@fabpot
Copy link
Member

fabpot commented Jul 31, 2020

Thank you @JakeFr.

@fabpot fabpot merged commit 909158b into symfony:4.4 Jul 31, 2020
This was referenced Aug 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants