src/Yggdrasil/Core/Driver/DriverAccessorTrait.php
protected function getTemplateEngine(): TemplateEngineDriver
    {
        if (!$this->drivers->get('templateEngine') instanceof TemplateEngineDriver) {
            throw new DriverNotSupportedException('Provided template engine driver is not supported.');
        }

        return $this->drivers->get('templateEngine');
    }
protected function getTemplateEngine(): TemplateEngineDriver
    {
        if (!$this->drivers->get('templateEngine') instanceof TemplateEngineDriver) {
            throw new DriverNotSupportedException('Provided template engine driver is not supported.');
        }

        return $this->drivers->get('templateEngine');
    }
protected function getTemplateEngine ( ) : TemplateEngineDriver { if ( ! $ this -> drivers -> get ( 'templateEngine' ) instanceof TemplateEngineDriver ) { throw new DriverNotSupportedException ( 'Provided template engine driver is not supported.' ) ; } return $ this -> drivers -> get ( 'templateEngine' ) ; }
Returns template engine driver instance

@return TemplateEngineDriver
@throws DriverNotSupportedException
Returns template engine driver instance