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

Deprecate CoreExtension::setEscaper() and CoreExtension::getEscaper() in favor of the same methods on EscaperExtension #3026

Merged
merged 1 commit into from May 21, 2019

Conversation

fabpot
Copy link
Contributor

@fabpot fabpot commented May 21, 2019

This is some preliminary work to ease #3025. Everything related to escaping is now part of the EscaperExtension instead of CoreExtension. This PR is submitted on 2.x because both extensions are always available in 2.x (which is not the case on 1.x).


if (null === $escapers) {
// merge the ones set on CoreExtension for BC (to be removed in 3.0)
$escapers = array_merge(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is where we deal with BC.

…) in favor of the same methods on EscaperExtension
@fabpot fabpot merged commit 59d1d5d into twigphp:2.x May 21, 2019
fabpot added a commit that referenced this pull request May 21, 2019
…::getEscaper() in favor of the same methods on EscaperExtension (fabpot)

This PR was merged into the 2.x branch.

Discussion
----------

Deprecate CoreExtension::setEscaper() and CoreExtension::getEscaper() in favor of the same methods on EscaperExtension

This is some preliminary work to ease #3025. Everything related to escaping is now part of the `EscaperExtension` instead of `CoreExtension`. This PR is submitted on 2.x because both extensions are always available in 2.x (which is not the case on 1.x).

Commits
-------

59d1d5d deprecated CoreExtension::setEscaper() and CoreExtension::getEscaper() in favor of the same methods on EscaperExtension
@fabpot fabpot deleted the escaper-move branch June 3, 2019 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant