Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / Navigation / View / HelperConfig.php
blob0f468ea3443d17869135b1e655caaba252491999
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
8 */
10 namespace Zend\Navigation\View;
12 use Zend\ServiceManager\ConfigInterface;
13 use Zend\ServiceManager\ServiceManager;
14 use Zend\View\HelperPluginManager;
16 /**
17 * Service manager configuration for navigation view helpers
19 class HelperConfig implements ConfigInterface
21 /**
22 * Configure the provided service manager instance with the configuration
23 * in this class.
25 * Simply adds a factory for the navigation helper, and has it inject the helper
26 * with the service locator instance.
28 * @param ServiceManager $serviceManager
29 * @return void
31 public function configureServiceManager(ServiceManager $serviceManager)
33 $serviceManager->setFactory('navigation', function (HelperPluginManager $pm) {
34 $helper = new \Zend\View\Helper\Navigation;
35 $helper->setServiceLocator($pm->getServiceLocator());
36 return $helper;
37 });