8000 [Translation] [2.6] Upgrade information for LoggingTranslator by derrabus · Pull Request #12579 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Translation] [2.6] Upgrade information for LoggingTranslator #12579

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
Nov 28, 2014

Conversation

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

When upgrading a Symfony 2.5 project to the 2.6 branch, I noticed that the @translator service was changed. In the affected project, we've had a service that depends on the @translator service and uses a type hint to ensure that a Translator instance is passed to the constructor. With the introduction of the LoggingTranslator class (PR #10887), this type hint now fails.

I have added a small note to UPGRADE-2.6.md in case more people stumble across this changed behavior.

@derrabus derrabus changed the title [Translation] Upgrade information for LoggingTranslator [Translation] [2.6] Upgrade information for LoggingTranslator Nov 27, 2014
@fabpot
Copy link
Member
fabpot commented Nov 28, 2014

Thank you @derrabus.

@fabpot fabpot merged commit cd55a81 into symfony:2.6 Nov 28, 2014
fabpot added a commit that referenced this pull request Nov 28, 2014
…lator (derrabus)

This PR was merged into the 2.6 branch.

Discussion
----------

[Translation] [2.6] Upgrade information for LoggingTranslator

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

When upgrading a Symfony 2.5 project to the 2.6 branch, I noticed that the `@translator` service was changed. In the affected project, we've had a service that depends on the `@translator` service and uses a type hint to ensure that a `Translator` instance is passed to the constructor. With the introduction of the `LoggingTranslator` class (PR #10887), this type hint now fails.

I have added a small note to ` UPGRADE-2.6.md` in case more people stumble across this changed behavior.

Commits
-------

cd55a81 Upgrade information for the Translation component regarding the new LoggingTranslator class.
@derrabus derrabus deleted the 2.6-upgrading-translator branch November 28, 2014 09:18
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.

2 participants
0