-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
PSR-16 standard compliance #120
base: 2.27.x
Are you sure you want to change the base?
Conversation
Closes laminas#49 Signed-off-by: Cédric Anne <[email protected]> Signed-off-by: Adrien Crivelli <[email protected]>
Signed-off-by: Adrien Crivelli <[email protected]>
Signed-off-by: Adrien Crivelli <[email protected]>
Signed-off-by: Adrien Crivelli <[email protected]>
Signed-off-by: Adrien Crivelli <[email protected]>
Signed-off-by: Adrien Crivelli <[email protected]>
Signed-off-by: Adrien Crivelli <[email protected]>
To be clear, the suggestion for the decorator is the fact that a support for PSR-16 can be released with a minor version. This means faster availability. |
Fair enough, I am in no hurry. Especially because in the meantime the decorator technique can be implemented in projects that require PSR-16 support. Would you mind explaining the reasoning behind putting this PR back to draft status ? IMHO this is ready for review and, if the review is ok, should be merged into whatever branch will end up as the next major. |
👍🏻
I simply want to avoid merging this pull request too early. The interface defines only to methods: laminas-i18n/src/Translator/TranslatorInterface.php Lines 8 to 37 in a09c577
But the
Therefore, a fundamental redesign must be considered for the next major version. This does not mean that the features cache, the events or the factory should be removed, but whether they all belong in this one class. And if it would not be better to focus only on the essential in this class and in this way considerably extend the extension / reuse. |
@PowerKiKi |
Closes #49
Description
This is a revival of #50, to bring support for PSR-16, and with the goal to release as a major version.
I think the decorator pattern suggested in #50 is a bit too cumbersome for a feature that is supposed to be used very often. Keeping things well-integrated in the
Translator
class keep it simple to use, and dropping support forCacheStorage
makes maintenance easier. Both of those decisions seems to be the best for the long term, even though it requires a major version.