allow use of TranslatorInterface as Translator
| Q | A |
|---|---|
| Documentation | no |
| Bugfix | yes |
| BC Break | no |
| New Feature | no |
| RFC | no |
| QA | no |
Description
This PR wants to allow the use of Laminas\I18n\Translator\TranslatorInterface if 'MvcTranslator' is not available.
This is related to #194.
@mimmi20
Please note: Laminas\Validator\Translator\TranslatorInterface !== Laminas\I18n\Translator\TranslatorInterface
https://github.com/laminas/laminas-validator/blob/bbb318490d186821e9488dcbc24455e1578717bb/src/Translator/TranslatorInterface.php#L3-L14
vs.
https://github.com/laminas/laminas-i18n/blob/99c7f8a2e1b286db71bee80f39f78b7d3c53d5d1/src/Translator/TranslatorInterface.php#L3-L18
@mimmi20 I have marked this pull request as a draft in order to find a good and suitable solution.
Thanks for help! 👍🏻
@froschdesign I'll leave it to you to merge and release if you're happy
@froschdesign Is this one good to go? LMK and I'll merge and release - then I can cut a 3.0.x branch in the hope that we can get SMv4 happening here soon 🤞