private function autoloadAdapters()
    {
        $rendererConfig = $this->getApplication()->getConfig()->getRendererConfig();
        $adapters = (array) $rendererConfig['adapter'];
        foreach ($adapters as $adapter) {
            $classname = $adapter;
            $adapterConfig = [];
            if (is_array($adapter)) {
                $classname = isset($adapter['class']) ? $adapter['class'] : null;
                $adapterConfig = isset($adapter['config']) && is_array($adapter['config']) ? $adapter['config'] : [];
            }

            $this->addRendererAdapter(new $classname($this, $adapterConfig));
        }

        return $this;
    }
private function autoloadAdapters()
    {
        $rendererConfig = $this->getApplication()->getConfig()->getRendererConfig();
        $adapters = (array) $rendererConfig['adapter'];
        foreach ($adapters as $adapter) {
            $classname = $adapter;
            $adapterConfig = [];
            if (is_array($adapter)) {
                $classname = isset($adapter['class']) ? $adapter['class'] : null;
                $adapterConfig = isset($adapter['config']) && is_array($adapter['config']) ? $adapter['config'] : [];
            }

            $this->addRendererAdapter(new $classname($this, $adapterConfig));
        }

        return $this;
    }
private function autoloadAdapters ( ) { $ rendererConfig = $ this -> getApplication ( ) -> getConfig ( ) -> getRendererConfig ( ) ; $ adapters = ( array ) $ rendererConfig [ 'adapter' ] ; foreach ( $ adapters as $ adapter ) { $ classname = $ adapter ; $ adapterConfig = [ ] ; if ( is_array ( $ adapter ) ) { $ classname = isset ( $ adapter [ 'class' ] ) ? $ adapter [ 'class' ] : null ; $ adapterConfig = isset ( $ adapter [ 'config' ] ) && is_array ( $ adapter [ 'config' ] ) ? $ adapter [ 'config' ] : [ ] ; } $ this -> addRendererAdapter ( new $ classname ( $ this , $ adapterConfig ) ) ; } return $ this ; }
Autoloads every declared renderer adapters into application config.

@return self
Autoloads every declared renderer adapters into application config .