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

Commit

Permalink
Updated Navigation for beta5 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Spraggs committed Jul 6, 2012
1 parent e3910e9 commit 1dff4d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
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 library/Zend/Navigation/View/HelperConfiguration.php
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 1dff4d8

Please sign in to comment.