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

Skip to content

[FrameworkBundle] remove translation data collector when not usable #21637

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

Merged
merged 1 commit into from
Feb 17, 2017

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Feb 16, 2017

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


$translatorClass = $container->findDefinition('translator')->getClass();

if (!is_subclass_of($translatorClass, '\Symfony\Component\Translation\TranslatorBagInterface')) {
Copy link
Member

Choose a reason for hiding this comment

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

The leading \ can be removed I think.

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@xabbuh xabbuh force-pushed the issue-17957 branch 2 times, most recently from 36f54fa to 303bb73 Compare February 16, 2017 22:20
@fabpot
Copy link
Member

fabpot commented Feb 17, 2017

Thank you @xabbuh.

@fabpot fabpot merged commit 303bb73 into symfony:2.7 Feb 17, 2017
fabpot added a commit that referenced this pull request Feb 17, 2017
…ot usable (xabbuh)

This PR was merged into the 2.7 branch.

Discussion
----------

[FrameworkBundle] remove translation data collector when not usable

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #17957
| License       | MIT
| Doc PR        |

Commits
-------

303bb73 remove translation data collector when not usable
@xabbuh xabbuh deleted the issue-17957 branch February 17, 2017 16:32
return;
}

$translatorClass = $container->findDefinition('translator')->getClass();
Copy link
Member

Choose a reason for hiding this comment

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

you need to resolve the value, as the class may use a parameter

Copy link
Member Author

Choose a reason for hiding this comment

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

see #21680

fabpot added a commit that referenced this pull request Feb 20, 2017
…es (xabbuh)

This PR was merged into the 2.7 branch.

Discussion
----------

[FrameworkBundle] resolve parameters in definition classes

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #21637 (comment)
| License       | MIT
| Doc PR        |

Commits
-------

37ce682 resolve parameters in definition classes
symfony-splitter pushed a commit to symfony/framework-bundle that referenced this pull request Feb 20, 2017
…es (xabbuh)

This PR was merged into the 2.7 branch.

Discussion
----------

[FrameworkBundle] resolve parameters in definition classes

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | symfony/symfony#21637 (comment)
| License       | MIT
| Doc PR        |

Commits
-------

37ce682947 resolve parameters in definition classes
This was referenced Mar 6, 2017
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.

4 participants