-
Notifications
You must be signed in to change notification settings - Fork 49
Add getCacheId() and clearCache() method to Translator #93
Add getCacheId() and clearCache() method to Translator #93
Conversation
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.
I’m missing tests for the introduced api
src/Translator/Translator.php
Outdated
* Get the cache identifier for a specific textDomain and locale. | ||
* | ||
* @param string $textDomain | ||
* @param string $locale |
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.
Too much space
src/Translator/Translator.php
Outdated
* Clears the cache for a specific textDomain and locale. | ||
* | ||
* @param $textDomain | ||
* @param $locale |
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.
Parameter types?
Fixed the comments and added tests. Is there any consensus in the ZF code style about using static methods via |
For unit tests, that's the style we've consistently done since, well, we began. There's an open discussion in our forums covering exactly this, though with no consensus as of yet. |
Add getCacheId() and clearCache() method to Translator
Thanks, @MatthiasKuehneEllerhold. Merged to develop for release with 2.9.0. |
See #63 for discussion.