original_string: public function createService(ServiceLocatorInterface $serviceLocator)
      {
          $appConfig = $serviceLocator->get('config');
          $config = array_key_exists('log', $appConfig) ? $appConfig['log'] : array();
          $class = array_key_exists('class', $config) ? $config['class'] : 'Zend\Log\Logger';
          $logger = new $class($config);
          return $logger;
      }
code: public function createService(ServiceLocatorInterface $serviceLocator)
      {
          $appConfig = $serviceLocator->get('config');
          $config = array_key_exists('log', $appConfig) ? $appConfig['log'] : array();
          $class = array_key_exists('class', $config) ? $config['class'] : 'Zend\Log\Logger';
          $logger = new $class($config);
          return $logger;
      }
code_tokens: public function createService ( ServiceLocatorInterface $ serviceLocator ) { $ appConfig = $ serviceLocator -> get ( 'config' ) ; $ config = array_key_exists ( 'log' , $ appConfig ) ? $ appConfig [ 'log' ] : array ( ) ; $ class = array_key_exists ( 'class' , $ config ) ? $ config [ 'class' ] : 'Zend\Log\Logger' ; $ logger = new $ class ( $ config ) ; return $ logger ; }
docstring: Creates a Logger service
  
  @see \Zend\ServiceManager\FactoryInterface::createService()
  @param \Zend\ServiceManager\ServiceLocatorInterface $serviceLocator
  @return \Zend\Log\LoggerInterface
docstring_tokens: Creates a Logger service