-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Conversation
@weierophinney Apparently we can only have multiple interfaces declaring the same method as of PHP 5.3.9 – how are we going to tackle this? |
By the way, what I noticed while going through this. The entire idea of creating the ValidatorTranslatorInterface was going to get rid of a direct dependency on Zend\I18n. since the Zend\Mvc\Translator uses stuff from Zend\I18n though, we still have that dependency indirectly, which renders the ValidatorTranslatorInterface obsolete. |
Thinking about it, this problem can be easily solved by decorating the translator, instead of extending, what do you think, @weierophinney ? |
@@ -0,0 +1 @@ | |||
compress me |
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.
added by the tests accidentally?
|
||
if (!isset($config['translator'])) { | ||
return new DummyTranslator(); | ||
} |
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.
We should likely do this for the MvcTranslator service, too.
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.
NM, this is the MvcTranslator service factory.
- should not have been committed
Merged to develop for release with 2.3.0. |
Reverts PR zendframework#5108 This reverts commit 5017af8, reversing changes made to c23c250. The reason this is being reverted is because the solution does not work on 5.3.3; in fact, it will only work starting with version 5.3.9. Until we can either up the minimum required PHP version or come up with an alternate approach, this changeset cannot be included in a release.
- Originally included in merge for zendframework#5108
Reverts #5108 (hopefully temporarily)
Re-opening, as the current situation leads to a broken develop branch, unless we up the PHP version. Looking into an alternate solution with @DASPRiD. |
Fixed with #5406 |
…ix/4879 Hotfix/4879
Reverts PR zendframework/zendframework#5108 This reverts commit 5017af832b75d2bdf50f5ca26a8fb3c76782d9cd, reversing changes made to c23c25099512244bb10773558310d5b6ec4de075. The reason this is being reverted is because the solution does not work on 5.3.3; in fact, it will only work starting with version 5.3.9. Until we can either up the minimum required PHP version or come up with an alternate approach, this changeset cannot be included in a release.
Reverts zendframework/zendframework#5108 (hopefully temporarily)
…ix/4879 Hotfix/4879
Reverts PR zendframework/zendframework#5108 This reverts commit 5017af832b75d2bdf50f5ca26a8fb3c76782d9cd, reversing changes made to c23c25099512244bb10773558310d5b6ec4de075. The reason this is being reverted is because the solution does not work on 5.3.3; in fact, it will only work starting with version 5.3.9. Until we can either up the minimum required PHP version or come up with an alternate approach, this changeset cannot be included in a release.
Reverts zendframework/zendframework#5108 (hopefully temporarily)
…ix/4879 Hotfix/4879
- should not have been committed
…ix/4879 Hotfix/4879
Reverts PR zendframework/zendframework#5108 This reverts commit 5017af832b75d2bdf50f5ca26a8fb3c76782d9cd, reversing changes made to c23c25099512244bb10773558310d5b6ec4de075. The reason this is being reverted is because the solution does not work on 5.3.3; in fact, it will only work starting with version 5.3.9. Until we can either up the minimum required PHP version or come up with an alternate approach, this changeset cannot be included in a release.
Reverts zendframework/zendframework#5108 (hopefully temporarily)
…ix/4879 Hotfix/4879
Reverts PR zendframework/zendframework#5108 This reverts commit 5017af832b75d2bdf50f5ca26a8fb3c76782d9cd, reversing changes made to c23c25099512244bb10773558310d5b6ec4de075. The reason this is being reverted is because the solution does not work on 5.3.3; in fact, it will only work starting with version 5.3.9. Until we can either up the minimum required PHP version or come up with an alternate approach, this changeset cannot be included in a release.
- Originally included in merge for zendframework/zendframework#5108
Reverts zendframework/zendframework#5108 (hopefully temporarily)
This PR fixes issue #4879. It introduces a dummy translator, which is used in case the user did not configure any translator. It also adds a general TranslatorInterface to be typehinted against in our internal code. This should not affect any user-code and thus be BC-safe.