Skip to content

Fix profiler display when using in a symfony/flex project #196

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
Aug 4, 2017
Merged

Fix profiler display when using in a symfony/flex project #196

merged 1 commit into from
Aug 4, 2017

Conversation

fbourigault
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets n/a
Documentation n/a
License MIT

This fix the profiler panel display when used in a symfony/flex application.

I added a test to ensure the panel is loading (the case is with no requests sent).

The bug was caused by the profiler template path which was using the old twig path syntax (no @ and ::).

I also found that the profiler is dependent on the symfony/asset component.

@@ -45,6 +46,7 @@
"symfony/web-profiler-bundle": "^2.8 || ^3.0",
"symfony/finder": "^2.7 || ^3.0",
"symfony/cache": "^3.1",
"symfony/browser-kit": "^2.8 || ^3.0",
Copy link
Member

Choose a reason for hiding this comment

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

Why do we need this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need it for testShowProfiler.

@Nyholm Nyholm merged commit 81de492 into php-http:master Aug 4, 2017
@Nyholm
Copy link
Member

Nyholm commented Aug 4, 2017

Thank you

@fbourigault fbourigault deleted the symfony-flex branch August 4, 2017 08:15
@fbourigault fbourigault mentioned this pull request Aug 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants