public function addViewRenderer($sId, $xClosure)
    {
        // Return the non-initialiazed view renderer
        $this->coreContainer['jaxon.sentry.view.base.' . $sId] = $xClosure;

        // Return the initialized view renderer
        $this->coreContainer['jaxon.sentry.view.' . $sId] = function ($c) use ($sId) {
            // Get the defined renderer
            $renderer = $c['jaxon.sentry.view.base.' . $sId];
            // Init the renderer with the template namespaces
            $aNamespaces = $this->coreContainer['jaxon.view.data.namespaces'];
            if(key_exists($sId, $aNamespaces))
            {
                foreach($aNamespaces[$sId] as $ns)
                {
                    $renderer->addNamespace($ns['namespace'], $ns['directory'], $ns['extension']);
                }
            }
            return $renderer;
        };
    }
public function addViewRenderer($sId, $xClosure)
    {
        // Return the non-initialiazed view renderer
        $this->coreContainer['jaxon.sentry.view.base.' . $sId] = $xClosure;

        // Return the initialized view renderer
        $this->coreContainer['jaxon.sentry.view.' . $sId] = function ($c) use ($sId) {
            // Get the defined renderer
            $renderer = $c['jaxon.sentry.view.base.' . $sId];
            // Init the renderer with the template namespaces
            $aNamespaces = $this->coreContainer['jaxon.view.data.namespaces'];
            if(key_exists($sId, $aNamespaces))
            {
                foreach($aNamespaces[$sId] as $ns)
                {
                    $renderer->addNamespace($ns['namespace'], $ns['directory'], $ns['extension']);
                }
            }
            return $renderer;
        };
    }
public function addViewRenderer ( $ sId , $ xClosure ) { // Return the non-initialiazed view renderer $ this -> coreContainer [ 'jaxon.sentry.view.base.' . $ sId ] = $ xClosure ; // Return the initialized view renderer $ this -> coreContainer [ 'jaxon.sentry.view.' . $ sId ] = function ( $ c ) use ( $ sId ) { // Get the defined renderer $ renderer = $ c [ 'jaxon.sentry.view.base.' . $ sId ] ; // Init the renderer with the template namespaces $ aNamespaces = $ this -> coreContainer [ 'jaxon.view.data.namespaces' ] ; if ( key_exists ( $ sId , $ aNamespaces ) ) { foreach ( $ aNamespaces [ $ sId ] as $ ns ) { $ renderer -> addNamespace ( $ ns [ 'namespace' ] , $ ns [ 'directory' ] , $ ns [ 'extension' ] ) ; } } return $ renderer ; } ; }
Add a view renderer

@param string                $sId                The unique identifier of the view renderer
@param Closure               $xClosure           A closure to create the view instance

@return void
Add a view renderer