src/OcraDiCompiler/Mvc/Service/ControllerPluginManagerFactory.php
public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $pluginManagerClass = static::PLUGIN_MANAGER_CLASS;
        $plugins = new $pluginManagerClass;
        $plugins->setServiceLocator($serviceLocator);
        $configuration    = $serviceLocator->get('Config');

        if (isset($configuration['di']) && $serviceLocator->has('Di')) {
            $di = $serviceLocator->get('Di');
            $plugins->addAbstractFactory(
                new DiAbstractServiceFactory($di, DiAbstractServiceFactory::USE_SL_BEFORE_DI)
            );
        }

        return $plugins;
    }
public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $pluginManagerClass = static::PLUGIN_MANAGER_CLASS;
        $plugins = new $pluginManagerClass;
        $plugins->setServiceLocator($serviceLocator);
        $configuration    = $serviceLocator->get('Config');

        if (isset($configuration['di']) && $serviceLocator->has('Di')) {
            $di = $serviceLocator->get('Di');
            $plugins->addAbstractFactory(
                new DiAbstractServiceFactory($di, DiAbstractServiceFactory::USE_SL_BEFORE_DI)
            );
        }

        return $plugins;
    }
public function createService ( ServiceLocatorInterface $ serviceLocator ) { $ pluginManagerClass = static :: PLUGIN_MANAGER_CLASS ; $ plugins = new $ pluginManagerClass ; $ plugins -> setServiceLocator ( $ serviceLocator ) ; $ configuration = $ serviceLocator -> get ( 'Config' ) ; if ( isset ( $ configuration [ 'di' ] ) && $ serviceLocator -> has ( 'Di' ) ) { $ di = $ serviceLocator -> get ( 'Di' ) ; $ plugins -> addAbstractFactory ( new DiAbstractServiceFactory ( $ di , DiAbstractServiceFactory :: USE_SL_BEFORE_DI ) ) ; } return $ plugins ; }
Create and return the MVC controller plugin manager

@param  ServiceLocatorInterface $serviceLocator
@return \Zend\Mvc\Controller\PluginManager
Create and return the MVC controller plugin manager