Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Allow TemplateManager to fallback to SF TemplateNameParser & TemplateLocator #8667

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
Closed

Allow TemplateManager to fallback to SF TemplateNameParser & TemplateLocator #8667

wants to merge 1 commit into from

Conversation

hacfi
Copy link
Contributor

@hacfi hacfi commented Aug 5, 2013

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? no
Fixed tickets fabpot/Twig#1156, #8665
License MIT

The exist method of the Symfony\Bundle\TwigBundle\Loader\FilesystemLoader (inherited from Twig_Loader_Filesystem) doesn’t fallback to Symfony’s TemplateNameParser & TemplateLocator and therefore fails on template names following the Bundle syntax like SecurityBundle:Collector:security.

This is option 1 how to fix this. However, I prefer option 2..see #8266.

@hacfi
Copy link
Contributor Author

hacfi commented Aug 5, 2013

The tests fail but it seems they fail for master too. The last build still used twig 0e63ef04a00fb238ee457708f8b4e8918aa51d7e.

@hacfi
Copy link
Contributor Author

hacfi commented Aug 5, 2013

It’s actually the FilesystemLoader that’s broken so I’m closing this in favour of #8672.

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