ZF2-434: Zend\View\HelperPluginManager fails when no translation key exists in configuration
Description
When using ZendSkeletonApplication with translation stripped out, I see the following error when using a view helper (HeadTitle in this case):
Uncaught exception 'Zend\I18n\Exception\InvalidArgumentException' with message 'Zend\I18n\Translator\Translator::factory expects an array or Traversable object; received "NULL"'
This is caused by Zend\I18n\Translator\TranslatorServiceFactory not checking that 'translator' config key exists before passing it to Translator::factory.
Comments
Posted by Adam Lundrigan (adamlundrigan) on 2012-07-31T14:29:32.000+0000
ZF2 PR: https://github.com/zendframework/zf2/pull/2063