public function getEngineFromExtension($extension): TemplateEngine
    {
        if (isset($this->file_extensions[strtolower($extension)])) {
            return $this->engines[ $this->file_extensions[strtolower($extension)]];
        }

        throw new LayoutException('Could not get Template Engine. No engine has corresponding file extension', 1);
    }
public function getEngineFromExtension($extension): TemplateEngine
    {
        if (isset($this->file_extensions[strtolower($extension)])) {
            return $this->engines[ $this->file_extensions[strtolower($extension)]];
        }

        throw new LayoutException('Could not get Template Engine. No engine has corresponding file extension', 1);
    }
public function getEngineFromExtension ( $ extension ) : TemplateEngine { if ( isset ( $ this -> file_extensions [ strtolower ( $ extension ) ] ) ) { return $ this -> engines [ $ this -> file_extensions [ strtolower ( $ extension ) ] ] ; } throw new LayoutException ( 'Could not get Template Engine. No engine has corresponding file extension' , 1 ) ; }
Retrieve a Template Engine from a File Extension.

@param string $extension File extention to look for

@return TemplateEngine
Retrieve a Template Engine from a File Extension .