original_string: public function createService(ServiceLocatorInterface $serviceLocator)
      {
          $parser = $serviceLocator->get('ControllerNameParser');
          $logger = $serviceLocator->has('Logger') ? $serviceLocator->get('Logger') : null;
  
          return new ControllerResolver($serviceLocator, $parser, $logger);
      }
code: public function createService(ServiceLocatorInterface $serviceLocator)
      {
          $parser = $serviceLocator->get('ControllerNameParser');
          $logger = $serviceLocator->has('Logger') ? $serviceLocator->get('Logger') : null;
  
          return new ControllerResolver($serviceLocator, $parser, $logger);
      }
code_tokens: public function createService ( ServiceLocatorInterface $ serviceLocator ) { $ parser = $ serviceLocator -> get ( 'ControllerNameParser' ) ; $ logger = $ serviceLocator -> has ( 'Logger' ) ? $ serviceLocator -> get ( 'Logger' ) : null ; return new ControllerResolver ( $ serviceLocator , $ parser , $ logger ) ; }
docstring: Create and return a ControllerResolver instance.
  
  @param ServiceLocatorInterface $serviceLocator
  
  @return \PPI\Framework\Module\Controller\ControllerResolver
docstring_tokens: Create and return a ControllerResolver instance .