public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $config = $serviceLocator->get('Config');
        $navigationConfig = $config['navigation'];
        $navigation = new Navigation($navigationConfig);
        return $navigation;
    }
public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $config = $serviceLocator->get('Config');
        $navigationConfig = $config['navigation'];
        $navigation = new Navigation($navigationConfig);
        return $navigation;
    }
public function createService ( ServiceLocatorInterface $ serviceLocator ) { $ config = $ serviceLocator -> get ( 'Config' ) ; $ navigationConfig = $ config [ 'navigation' ] ; $ navigation = new Navigation ( $ navigationConfig ) ; return $ navigation ; }
Create navigation service

@param ServiceLocatorInterface $serviceLocator
@return Navigation
Create navigation service