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

Commit

Permalink
Merge pull request zendframework/zendframework#1779 from SpiffyJr/pr/…
Browse files Browse the repository at this point in the history
…navigation-hotfixes

Updated Navigation for beta5 release.
  • Loading branch information
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Service/AbstractNavigationFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ protected function getPagesFromConfig($config = null)
/**
* @param array $pages
* @param RouteMatch $routeMatch
* @param UrlHelper $urlHelper
* @param Router $router
* @return mixed
*/
protected function injectComponents(array $pages, RouteMatch $routeMatch = null, Router $router = null)
Expand Down
5 changes: 3 additions & 2 deletions src/View/HelperConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

use Zend\ServiceManager\ConfigurationInterface;
use Zend\ServiceManager\ServiceManager;
use Zend\View\HelperPluginManager;

/**
* Service manager configuration for navigation view helpers
Expand All @@ -48,9 +49,9 @@ class HelperConfiguration implements ConfigurationInterface
*/
public function configureServiceManager(ServiceManager $serviceManager)
{
$serviceManager->setFactory('navigation', function($sm) {
$serviceManager->setFactory('navigation', function(HelperPluginManager $pm) {
$helper = new \Zend\View\Helper\Navigation;
$helper->setServiceLocator($sm);
$helper->setServiceLocator($pm->getServiceLocator());
return $helper;
});
}
Expand Down

0 comments on commit d285b08

Please sign in to comment.