Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[SecurityBundle] remove incompatible Twig version #16389

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

Closed
wants to merge 1 commit into from

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Oct 30, 2015

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

Currently, the SecurityBundle is not compatible with Twig 2.0 as it is
missing the implementation of the Twig_Extension_InitRuntimeInterface.
Thus, initRuntime() would not be called with Twig 2.0 anymore.

This should make the Travis builds green again and should be reverted when Twig 1.23 is released (can be done with #16331).

Currently, the SecurityBundle is not compatible with Twig 2.0 as it is
missing the implementation of the `Twig_Extension_InitRuntimeInterface`.
Thus, `initRuntime()` would not be called with Twig 2.0 anymore.
@TomasVotruba
Copy link
Contributor

Probably just came across the same issue.

php phpunit src/Symfony/Bundle/SecurityBundle

fails with:

ERROR OUTPUT: PHP Fatal error:  Call to a member function loadTemplate() on null in /var/www/symfony/symfony/src/Symfony/Bridge/Twig/Form/TwigRendererEngine.php on line 155

This PR fixes it.

@EmanueleMinotto
Copy link

I'm having the same problem, so thanks 👍

@fabpot
Copy link
Member

fabpot commented Oct 30, 2015

Twig 1.23 has been released yesterday.

@xabbuh
Copy link
Member Author

xabbuh commented Oct 30, 2015

Ah, well, missed that. In this case we should merge #16331 instead of course.

@xabbuh xabbuh closed this Oct 30, 2015
@xabbuh xabbuh deleted the twig-dependency-version branch October 30, 2015 15:31
@TomasVotruba
Copy link
Contributor

Thanks!

@TomasVotruba
Copy link
Contributor

Mmm, the build is still broken: https://travis-ci.org/symfony/symfony/jobs/88382131#L2674

Or does it wait on merging 2.3 branch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.