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

Skip to content

[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

Closed
wants to merge 5 commits into from

Conversation

jfsimon
Copy link
Contributor

@jfsimon jfsimon commented Mar 14, 2013

This PR adds following checks:

  • twig.extension.form extension is loaded if form.extension service is defined
  • twig.extension.trans extension is loaded if translator service is defined
Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #6238

@fabpot fabpot closed this in b8b8cd2 Mar 14, 2013
$container->getDefinition('twig.loader')->addMethodCall('addPath', array(dirname(dirname($reflClass->getFileName())).'/Resources/views/Form'));
}

if (false === $container->has('translator')) {
Copy link
Member

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 ?

Copy link
Contributor Author

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed in #7373, thanks!

@stof
Copy link
Member

stof commented Mar 14, 2013

This should also be done for the fragment handler for twig.extension.httpkernel and for the router for twig.extension.router (I don't know any good reason to disable the router, but it is technically possible)

@jfsimon jfsimon mentioned this pull request Mar 14, 2013
fabpot added a commit that referenced this pull request Mar 14, 2013
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
jfsimon added a commit to jfsimon/symfony that referenced this pull request Mar 15, 2013
fabpot added a commit that referenced this pull request Mar 16, 2013
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:
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.

3 participants