I have update zf2 on the latest version and i receive this error: http://jsfiddle.net/8Ft6d/
Some mandatory parameter was added for translation?
This is my translator config:
'translator' => array(
'locale' => 'it_IT',
'translation_file_patterns' => array(
array(
'type' => 'gettext',
'base_dir' => __DIR__ . '/../language',
'pattern' => '%s.mo',
),
),
),
'service_manager' => array(
'aliases' => array(
'translator' => 'MvcTranslator',
),
),
and this is what i call inside the Module.php::onBootstrap()
$translator = $serviceManager->get('translator’);
Thanks
What is happening here is that most probably, the
DiAbstractServiceFactoryis kicking in before an abstract factory that is responsible of fetching theMvcTransatorinstance.You will likely have to switch the order in which abstract factories are being used, or remove your
'di'config from your modules or autoload config, since its presence will automatically cause addition of theDiAbstractServiceFactoryto theServiceManager.