original_string: protected function config(MvcEvent $event)
      {
          $appConfig = $event->getApplication()->getServiceManager()->get('config');
          $config = array_key_exists(self::CONFIG_KEY, $appConfig) ? $appConfig[self::CONFIG_KEY] : array();
          
          if (array_key_exists('template', $config)) {
              $this->setTemplate($config['template']);
          }
          
          if (array_key_exists('renderLayout', $config)) {
              $this->setRenderLayout($config['renderLayout']);
          }
      }
code: protected function config(MvcEvent $event)
      {
          $appConfig = $event->getApplication()->getServiceManager()->get('config');
          $config = array_key_exists(self::CONFIG_KEY, $appConfig) ? $appConfig[self::CONFIG_KEY] : array();
          
          if (array_key_exists('template', $config)) {
              $this->setTemplate($config['template']);
          }
          
          if (array_key_exists('renderLayout', $config)) {
              $this->setRenderLayout($config['renderLayout']);
          }
      }
code_tokens: protected function config ( MvcEvent $ event ) { $ appConfig = $ event -> getApplication ( ) -> getServiceManager ( ) -> get ( 'config' ) ; $ config = array_key_exists ( self :: CONFIG_KEY , $ appConfig ) ? $ appConfig [ self :: CONFIG_KEY ] : array ( ) ; if ( array_key_exists ( 'template' , $ config ) ) { $ this -> setTemplate ( $ config [ 'template' ] ) ; } if ( array_key_exists ( 'renderLayout' , $ config ) ) { $ this -> setRenderLayout ( $ config [ 'renderLayout' ] ) ; } }
docstring: Set configuration options from application configuration
  
  @param MvcEvent $event
docstring_tokens: Set configuration options from application configuration