Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Added the ability to add custom service listeners in the application …
Browse files Browse the repository at this point in the history
…config.

- The default service listener can be overridden by using the ServiceListenerInterface key
  • Loading branch information
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/Helper/Navigation/AbstractTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ protected function setUp()

$sm = $this->serviceManager = new ServiceManager(new ServiceManagerConfig);
$sm->setService('ApplicationConfig', $smConfig);
$sm->setFactory('ServiceListener', 'Zend\Mvc\Service\ServiceListenerFactory');
$sm->get('ModuleManager')->loadModules();
$sm->get('Application')->bootstrap();
$sm->setFactory('Navigation', 'Zend\Navigation\Service\DefaultNavigationFactory');
Expand Down

0 comments on commit 204ce7a

Please sign in to comment.