You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.
I have a little trouble, it is appears because of:
Zend\Mvc\Service\TranslatorServiceFactory line 33
if ($serviceLocator->has('Zend\I18n\Translator\TranslatorInterface')) {
return new MvcTranslator($serviceLocator->get('Zend\I18n\Translator\TranslatorInterface'));
}
I use DI in my application, and this is cause very interesting error
Zend\ServiceManager\Exception\ServiceNotCreatedException: An exception was raised while creating "MvcTranslator"; no instance returned
when i had investigated this issue i found behaviour which in my opinion is not logical, but maybe i do not understand something.
if ($serviceLocator->has('Zend\I18n\Translator\TranslatorInterface')) {
return new MvcTranslator($serviceLocator->get('Zend\I18n\Translator\TranslatorInterface'));
}
this is force me to add 'Zend\I18n\Translator\TranslatorInterface' as shared Instance to the DI instanceManager but i think it is not a good decision.
Did i miss something ?
The text was updated successfully, but these errors were encountered:
I have a little trouble, it is appears because of:
Zend\Mvc\Service\TranslatorServiceFactory line 33
I use DI in my application, and this is cause very interesting error
when i had investigated this issue i found behaviour which in my opinion is not logical, but maybe i do not understand something.
What the reason
returns true, but
fails with exception ? I guess it is not predictable.
Second part:
In this commit 175b4b7
lines:
this is force me to add 'Zend\I18n\Translator\TranslatorInterface' as shared Instance to the DI instanceManager but i think it is not a good decision.
Did i miss something ?
The text was updated successfully, but these errors were encountered: