src/Factory/Mvc/Controller/IndexControllerFactory.php
public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $services = $serviceLocator->getServiceLocator();
        /* @var $options ControllerOptionsInterface */
        $options = $services->get(ModuleOptions::class);

        return new IndexController(
            $services->get('DomainServiceManager')->get($options->getUserEntityClass()),
            $options
        );
    }
public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $services = $serviceLocator->getServiceLocator();
        /* @var $options ControllerOptionsInterface */
        $options = $services->get(ModuleOptions::class);

        return new IndexController(
            $services->get('DomainServiceManager')->get($options->getUserEntityClass()),
            $options
        );
    }
public function createService ( ServiceLocatorInterface $ serviceLocator ) { $ services = $ serviceLocator -> getServiceLocator ( ) ; /* @var $options ControllerOptionsInterface */ $ options = $ services -> get ( ModuleOptions :: class ) ; return new IndexController ( $ services -> get ( 'DomainServiceManager' ) -> get ( $ options -> getUserEntityClass ( ) ) , $ options ) ; }
{@inheritDoc}

@return IndexController
{ @inheritDoc }