8000 Fix usage of app.security by fabpot · Pull Request #13460 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Fix usage of app.security #13460

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 2 commits into from
Jan 20, 2015
Merged

Fix usage of app.security #13460

merged 2 commits into from
Jan 20, 2015

Conversation

fabpot
Copy link
Member
@fabpot fabpot commented Jan 19, 2015
Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets n/a
License MIT
Doc PR n/a

Reverts the previous attempt to remove notices when using the app.security variable in Twig because it did not work (it prevents using app.security altogether).

So, instead, we inject the container and only get the security service (and thus triggering the deprecation notice) when the user is using app.security.

This reverts commit 564ae34, reversing
changes made to df76faa.
@fabpot fabpot changed the title Revert notices Fix usage of app.security Jan 19, 2015
@fabpot fabpot merged commit 09ed9b5 into symfony:2.7 Jan 20, 2015
fabpot added a commit that referenced this pull request Jan 20, 2015
This PR was merged into the 2.7 branch.

Discussion
----------

Fix usage of app.security

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

Reverts the previous attempt to remove notices when using the `app.security` variable in Twig because it did not work (it prevents using `app.security` altogether).

So, instead, we inject the container and only get the security service (and thus triggering the deprecation notice) when the user is using `app.security`.

Commits
-------

09ed9b5 removed deprecated notices when using the security service
1067cc5 Revert "minor #13434 fixed some deprecated notices (fabpot)"
@fabpot fabpot deleted the revert-notices branch February 12, 2015 09:33
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.

1 participant
0