-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[TwigBundle] Adds service check for extension loading #7373
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
Conversation
$container->getDefinition('twig.loader')->addMethodCall('addPath', array(dirname(dirname($reflClass->getFileName())).'/Resources/views/Form')); | ||
} | ||
|
||
if (false === $container->has('translator')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks weird to me. Adding the tag when it does not have the translator ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's a rebase error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in #7373, thanks!
This should also be done for the fragment handler for |
This PR was merged into the master branch. Commits ------- 82aa135 [TwigBundle] added conditions for routing & httpkernel extensions ad5eb7e [TwigBundle] fixed compiler pass error Discussion ---------- Issue 7373 | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #7373
This PR was merged into the master branch. Commits ------- 6021873 [TwigBundle] fixed wrong rebase in #7373 Discussion ---------- [TwigBundle] fixed wrong rebase in #7375 When rebasing on master, `twig.loader` has not been renamed to `twig.loader.filesystem`. | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #7375 --------------------------------------------------------------------------- by stof at 2013-03-15T16:48:44Z :+1:
This PR adds following checks:
twig.extension.form
extension is loaded ifform.extension
service is definedtwig.extension.trans
extension is loaded iftranslator
service is defined