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