Skip to content

Avoid using the app global variable in the profiler templates #14777

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
May 29, 2015

Conversation

stof
Copy link
Member

@stof stof commented May 29, 2015

Q A
Bug fix? yes
New feature? no
BC breaks? small one for people overwriting the WebDebugToolbarListener methods
Deprecations? no
Tests pass? yes
Fixed tickets silexphp/Silex-WebProfiler#64
License MIT
Doc PR n/a
#14217 introduced a usage of the app global variables in profiler templates, while we previously removed all such usages to avoid the dependency on TwigBundle in these templates.

This keeps them usable outside the fullstack framework (for instance in Silex).

I had to do a small BC break to be able to pass the request in the place where we were not yet injecting the Request in the template.

This keeps them usable outside the fullstack framework (for instance in
Silex).
@jakzal
Copy link
Contributor

jakzal commented May 29, 2015

Tests are failing.

@fabpot
Copy link
Member

fabpot commented May 29, 2015

Thank you @stof.

@fabpot fabpot merged commit 415c79e into symfony:2.6 May 29, 2015
fabpot added a commit that referenced this pull request May 29, 2015
…tes (stof)

This PR was merged into the 2.6 branch.

Discussion
----------

Avoid using the app global variable in the profiler templates

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | small one for people overwriting the WebDebugToolbarListener methods
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | silexphp/Silex-WebProfiler#64
| License       | MIT
| Doc PR        | n/a

#14217 introduced a usage of the ``app`` global variables in profiler templates, while we previously removed all such usages to avoid the dependency on TwigBundle in these templates.
This keeps them usable outside the fullstack framework (for instance in Silex).

I had to do a small BC break to be able to pass the request in the place where we were not yet injecting the Request in the template.

Commits
-------

415c79e Avoid using the app global variable in the profiler templates
@stof stof deleted the fix_profiler_template branch July 2, 2015 21:38
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.

3 participants