public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $parser = $serviceLocator->get('ControllerNameParser');
        $logger = $serviceLocator->has('Logger') ? $serviceLocator->get('Logger') : null;

        return new ControllerResolver($serviceLocator, $parser, $logger);
    }
public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $parser = $serviceLocator->get('ControllerNameParser');
        $logger = $serviceLocator->has('Logger') ? $serviceLocator->get('Logger') : null;

        return new ControllerResolver($serviceLocator, $parser, $logger);
    }
public function createService ( ServiceLocatorInterface $ serviceLocator ) { $ parser = $ serviceLocator -> get ( 'ControllerNameParser' ) ; $ logger = $ serviceLocator -> has ( 'Logger' ) ? $ serviceLocator -> get ( 'Logger' ) : null ; return new ControllerResolver ( $ serviceLocator , $ parser , $ logger ) ; }
Create and return a ControllerResolver instance.

@param ServiceLocatorInterface $serviceLocator

@return \PPI\Framework\Module\Controller\ControllerResolver
Create and return a ControllerResolver instance .