Skip to content

Commit

Permalink
Fixed service listener
Browse files Browse the repository at this point in the history
  • Loading branch information
Gianluca Arbezzano committed Mar 18, 2016
1 parent cad9963 commit f45bf3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/DoctrineModuleTest/ServiceManagerTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ public function getServiceManager(array $configuration = null)
);

$serviceManager->setService('ApplicationConfig', $configuration);
$serviceManager->setFactory('ServiceListener', 'Zend\Mvc\Service\ServiceListenerFactory');
if (!$serviceManager->has('ServiceListener')) {
$serviceManager->setFactory('ServiceListener', 'Zend\Mvc\Service\ServiceListenerFactory');
}

/* @var $moduleManager \Zend\ModuleManager\ModuleManagerInterface */
$moduleManager = $serviceManager->get('ModuleManager');
Expand Down

0 comments on commit f45bf3d

Please sign in to comment.