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

Commit d285b08

Browse files

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/Service/AbstractNavigationFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ protected function getPagesFromConfig($config = null)
121121
/**
122122
* @param array $pages
123123
* @param RouteMatch $routeMatch
124-
* @param UrlHelper $urlHelper
124+
* @param Router $router
125125
* @return mixed
126126
*/
127127
protected function injectComponents(array $pages, RouteMatch $routeMatch = null, Router $router = null)

src/View/HelperConfiguration.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
use Zend\ServiceManager\ConfigurationInterface;
2525
use Zend\ServiceManager\ServiceManager;
26+
use Zend\View\HelperPluginManager;
2627

2728
/**
2829
* Service manager configuration for navigation view helpers
@@ -48,9 +49,9 @@ class HelperConfiguration implements ConfigurationInterface
4849
*/
4950
public function configureServiceManager(ServiceManager $serviceManager)
5051
{
51-
$serviceManager->setFactory('navigation', function($sm) {
52+
$serviceManager->setFactory('navigation', function(HelperPluginManager $pm) {
5253
$helper = new \Zend\View\Helper\Navigation;
53-
$helper->setServiceLocator($sm);
54+
$helper->setServiceLocator($pm->getServiceLocator());
5455
return $helper;
5556
});
5657
}

0 commit comments

Comments
 (0)