Create and return the view helper manager

@param  ServiceLocatorInterface $serviceLocator
@return \Zend_View_Helper_Interface
165175
public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $plugins = parent::createService($serviceLocator);

        // override translate view helper, if translator is created by service locator
        if ($serviceLocator->has('Translator')) {
            $plugins->setFactory('translate', function($sm) use ($serviceLocator) {
                $translateViewHelper = new \Zend_View_Helper_Translate($serviceLocator->get('Translator'));
                return $translateViewHelper;
            });
        }

        if ($serviceLocator->has('Navigation')) {
            $plugins->setFactory('navigation', function($sm) use ($serviceLocator) {
                $navigationViewHelper = new \HumusMvc\View\Helper\Navigation();
                $navigationViewHelper->setServiceLocator($serviceLocator);
                return $navigationViewHelper;
            });
        }

        return $plugins;
    }
226494
public function createService(ServiceManager\ServiceLocatorInterface $serviceLocator)
    {
        $config = $serviceLocator->get('config');

        $config = (isset($config['yima_widgetator'])) ? $config['yima_widgetator'] : [];
        $config = (isset($config['widgets'])) ? $config['widgets'] : [];

        $widgetContainer = new RegionBoxContainer;
        $widgetContainer->addWidgets($config);

        return $widgetContainer;
    }
442536
public function createService(ServiceLocatorInterface $serviceManager)
    {
        $serviceLocator = $serviceManager->getServiceLocator();

        return $this->__invoke($serviceLocator, null);
    }
209411
public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $serviceLocator = $serviceLocator->getServiceLocator();
        $helper = new FormElementErrors();
        $config = $serviceLocator->get('Config');
        if (isset($config['view_helper_config']['formelementerrors'])) {
            $configHelper = $config['view_helper_config']['formelementerrors'];
            if (isset($configHelper['message_open_format'])) {
                $helper->setMessageOpenFormat($configHelper['message_open_format']);
            }

            if (isset($configHelper['message_separator_string'])) {
                $helper->setMessageSeparatorString($configHelper['message_separator_string']);
            }

            if (isset($configHelper['message_close_string'])) {
                $helper->setMessageCloseString($configHelper['message_close_string']);
            }
        }

        return $helper;
    }
898784
public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $config = $serviceLocator->get('Config');
        $modelConfig = [];
        if (isset($config['matryoshka']) && isset($config['matryoshka']['model_manager'])) {
            $modelConfig = $config['matryoshka']['model_manager'];
        }
        return new ModelManager(new Config($modelConfig));
    }
483552
public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $snippetHelper = new SnippetHelper();

        // Get the top level service locator
        $serviceManager = $serviceLocator;
        if ($serviceManager instanceof HelperPluginManager) {
            $serviceManager = $serviceManager->getServiceLocator();
        }

        if (!$serviceManager->has('Config')) {
            return $snippetHelper;
        }


        $config = $serviceManager->get('Config');

        $snippetsConfig = isset($config[$this->configKey]) ? $config[$this->configKey] : [];

        if (!isset($snippetsConfig['snippets'])) {
            return $snippetHelper;
        }

        $snippets = $snippetsConfig['snippets'];


        if (!is_array($snippets)) {
            return $snippetHelper;
        }

        return $this->configureSnippetHelper($snippetHelper, $config, $snippetsConfig);

    }
1318686
public function createService(ServiceLocatorInterface $controllerManager)
    {
        /** @var ServiceLocatorInterface $serviceManager */
        $serviceManager = $controllerManager->getServiceLocator();

        /** @var \Eye4web\Zf2Board\Options\ModuleOptions $moduleOptions */
        $moduleOptions = $serviceManager->get('Eye4web\Zf2Board\Options\ModuleOptions');

        /** @var \Eye4web\Zf2Board\Service\BoardService $boardService */
        $boardService = $serviceManager->get('Eye4web\Zf2Board\Service\BoardService');

        /** @var \Eye4web\Zf2Board\Service\TopicService $topicService */
        $topicService = $serviceManager->get('Eye4web\Zf2Board\Service\TopicService');

        /** @var \Eye4web\Zf2Board\Service\PostService $postService */
        $postService = $serviceManager->get('Eye4web\Zf2Board\Service\PostService');

        /** @var \Zend\Form\Form $topicCreateForm */
        $topicCreateForm = $serviceManager->get('Eye4web\Zf2Board\Form\Topic\CreateForm');

        /** @var \Zend\Form\Form $postCreateForm */
        $postCreateForm = $serviceManager->get('Eye4web\Zf2Board\Form\Post\CreateForm');

        /** @var \Zend\Form\Form $postEditForm */
        $postEditForm = $serviceManager->get('Eye4web\Zf2Board\Form\Post\EditForm');

        /** @var \Zend\Authentication\AuthenticationService $authenticationService */
        $authenticationService = $serviceManager->get($moduleOptions->getAuthenticationService());

        $controller = new BoardController(
            $boardService,
            $topicService,
            $postService,
            $topicCreateForm,
            $postCreateForm,
            $postEditForm,
            $authenticationService,
            $moduleOptions
        );

        /** @var \Zend\EventManager\EventManager $eventManager */
        $eventManager = $serviceManager->get('EventManager');

        $controller->setEventManager($eventManager);

        return $controller;
    }
1221611
public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $parentLocator = $serviceLocator->getServicelocator();

        return new TwViewHelper(
            $parentLocator->get(WidgetOptions::class),
            $parentLocator->get(TimelineBuilder::class)
        );
    }
1223596
public function createService(ServiceLocatorInterface $serviceLocator)
    {
        /** @var array $config */
        $config = $serviceLocator->get('Config')['eye4web_abac']['assertion_manager'];

        $pluginManager = new AssertionPluginManager(new Config($config));
        $pluginManager->setServiceLocator($serviceLocator);

        return $pluginManager;
    }
400732
public function createService(ServiceLocatorInterface $controllerManager)
    {
        /* @var ControllerManager $controllerManager*/
        $serviceManager = $controllerManager->getServiceLocator();

        return $this->__invoke($serviceManager, null);
    }
454749
public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $config             = $serviceLocator->get('config');
        $sessionOptions     = $config['uthando_session_manager']['options'] ?? [];
        $options            = new SessionOptions($sessionOptions);

        return $options;
    }
1186677
public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $config = $serviceLocator->get('Config');
        $navigationConfig = $config['navigation'];
        $navigation = new Navigation($navigationConfig);
        return $navigation;
    }
1149351
public function createService(ServiceLocatorInterface $serviceLocator)
    {
        /** @var array  $config */
        $config            = $serviceLocator->get('Config');
        $displayExceptions = array_key_exists('view_manager', $config)
            && array_key_exists('display_exceptions', $config['view_manager'])
            && $config['view_manager']['display_exceptions'];

        $listener = new SendApiProblemResponseListener();
        $listener->setDisplayExceptions($displayExceptions);

        if ($serviceLocator->has('Response')) {
            $response = $serviceLocator->get('Response');
            if ($response instanceof HttpResponse) {
                $listener->setApplicationResponse($response);
            }
        }

        if ($serviceLocator->has('Application')) {
            /** @var Application $app */
            $app = $serviceLocator->get('Application');
            $mvcEvent = $app->getMvcEvent();

            if ($mvcEvent instanceof MvcEvent) {
                $listener->setMvcEvent($mvcEvent);
            }
        }



        return $listener;
    }
492609
public function createService(ServiceLocatorInterface $serviceLocator)
    {
        /* @var $config RoaveDeveloperToolsConfiguration */
        $config = $serviceLocator->get(RoaveDeveloperToolsConfiguration::class);

        return new ToolbarInspectionRenderer(array_map([$serviceLocator, 'get'], $config->getToolbarTabRenderers()));
    }
688998
public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $mapper = new ContactMapper();
        $mapper->setDbAdapter($serviceLocator->get('Zend\Db\Adapter\Adapter'));
        $mapper->setEntityPrototype(new ContactEntity());
        $mapper->setHydrator(new ContactHydrator());
        return $mapper;

    }
183371
public function createService(ServiceLocatorInterface $viewHelperManager)
    {
        $serviceManager          = $viewHelperManager->getServiceLocator();
        $controllerPluginManager = $serviceManager->get(
            'ControllerPluginManager'
        );

        $plugin = $controllerPluginManager->get('flashMessenger');

        $helper = new BootstrapFlashMessenger($plugin);

        return $helper;
    }
439696
public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $config = $serviceLocator->get('config');
        $config = new GuardLoaderConfig($config['guard']['instance_loader']);
        $loader = new InstanceLoader($config);

        return $loader;
    }