src/Mvc/Listener/AccessDeniedStrategy.php
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']);
        }
    }
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']);
        }
    }
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' ] ) ; } }
Set configuration options from application configuration

@param MvcEvent $event
Set configuration options from application configuration