public function getEngine($name): TemplateEngine
    {
        $this->loadTemplateEngines();
        if (isset($this->engines[$name])) {
            return $this->engines[$name];
        }
        throw new LayoutException('Could not return engine. Engine does not exist', 1);
    }
public function getEngine($name): TemplateEngine
    {
        $this->loadTemplateEngines();
        if (isset($this->engines[$name])) {
            return $this->engines[$name];
        }
        throw new LayoutException('Could not return engine. Engine does not exist', 1);
    }
public function getEngine ( $ name ) : TemplateEngine { $ this -> loadTemplateEngines ( ) ; if ( isset ( $ this -> engines [ $ name ] ) ) { return $ this -> engines [ $ name ] ; } throw new LayoutException ( 'Could not return engine. Engine does not exist' , 1 ) ; }
Get a loaded template engine.

@param string $name Name of the template engine

@return TemplateEngine
Get a loaded template engine .