Skip to content
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

[WebProfilerBundle] Fix compatiblity with HttpKernel < 2.7 #14645

Merged
merged 1 commit into from May 15, 2015

Conversation

GromNaN
Copy link
Member

@GromNaN GromNaN commented May 15, 2015

The WebProfilerBundle version 2.7 is supposed to be compatible with HttpKernel 2.4, but the template of the config profile uses a property symfonyState that has been added in Symfony 2.7 by #13626.

Twig_Error_Runtime: Method "symfonyState" for object "Symfony\Component\HttpKernel\DataCollector\ConfigDataCollector" does not exist in "@WebProfiler/Collector/config.html.twig" at line 12

This fix makes the property optional.

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets silexphp/Silex-WebProfiler#63
License MIT

fabpot added a commit to silexphp/Silex-WebProfiler that referenced this pull request May 15, 2015
This PR was merged into the 2.0.x-dev branch.

Discussion
----------

Fix Twig & Routing profilers

1. Fix the Twig template definition to show the "Twig" item in the profiler menu.
2. Use the service `request_matcher` which replace `url_matcher` in Silex 2.

[Tests are failing](https://travis-ci.org/GromNaN/Silex-WebProfiler/builds/62699523) due to an incompatibility between `symfony/webprofiler-bundle 2.7` and `symfony/http-kernel 2.6`. This issue is resolved by symfony/symfony#14645

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | no
| Fixed tickets | -
| License       | MIT

Commits
-------

182f6eb Split tests for each feature
7f26fdd Fix Routing Profiler to use the request matcher
aa7e0a2 Fix twig profiler template
@fabpot
Copy link
Member

fabpot commented May 15, 2015

Thank you @GromNaN.

@fabpot fabpot merged commit 700fcf1 into symfony:2.7 May 15, 2015
fabpot added a commit that referenced this pull request May 15, 2015
… (GromNaN)

This PR was merged into the 2.7 branch.

Discussion
----------

[WebProfilerBundle] Fix compatiblity with HttpKernel < 2.7

The WebProfilerBundle version 2.7 is supposed to be compatible with HttpKernel 2.4, but the template of the config profile uses a property `symfonyState` that has been added in Symfony 2.7 by #13626.

> Twig_Error_Runtime: Method "symfonyState" for object "Symfony\Component\HttpKernel\DataCollector\ConfigDataCollector" does not exist in "@WebProfiler/Collector/config.html.twig" at line 12

This fix makes the property optional.

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | silexphp/Silex-WebProfiler#63
| License       | MIT

Commits
-------

700fcf1 Fix WebProfilerBundle compatiblity with HttpKernel < 2.7
@GromNaN GromNaN deleted the patch-1 branch May 15, 2015 14:14
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.

None yet

2 participants