src/NetBazzlineZfLocatorGenerator/Controller/Console/IndexControllerFactory.php
public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $controller     = new IndexController();
        $serviceLocator = $this->transformIntoServiceManager($serviceLocator);

        /** @var array|\Zend\Config\Config $configuration */
        $configuration  = $serviceLocator->get('Config');
        $key            = 'net_bazzline_zf_locator_generator';

        if (!isset($configuration[$key])) {
            throw new InvalidArgumentException (
                'expected configuration key "' . $key . '" not found'
            );
        }

        $configuration  = $configuration[$key];
        /** @var PipeInterface $pipe */
        $pipe           = $serviceLocator->get('NetBazzlineLocatorGeneratorProcessPipe');

        $controller->setConfiguration($configuration);
        $controller->setProcessPipe($pipe);

        return $controller;
    }
public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $controller     = new IndexController();
        $serviceLocator = $this->transformIntoServiceManager($serviceLocator);

        /** @var array|\Zend\Config\Config $configuration */
        $configuration  = $serviceLocator->get('Config');
        $key            = 'net_bazzline_zf_locator_generator';

        if (!isset($configuration[$key])) {
            throw new InvalidArgumentException (
                'expected configuration key "' . $key . '" not found'
            );
        }

        $configuration  = $configuration[$key];
        /** @var PipeInterface $pipe */
        $pipe           = $serviceLocator->get('NetBazzlineLocatorGeneratorProcessPipe');

        $controller->setConfiguration($configuration);
        $controller->setProcessPipe($pipe);

        return $controller;
    }
Create service

@param ServiceLocatorInterface $serviceLocator

@return mixed|IndexController