src/Template.php
private function applyExtensions(TemplateEngineInterface $engine)
    {
        foreach (static::$extensions as $className => $extension) {
            $ext = $this->getExtension($className, $extension);
            if ($ext->appliesTo($engine)) {
                $ext->update($engine);
            }
        }
        return $engine;
    }
private function applyExtensions(TemplateEngineInterface $engine)
    {
        foreach (static::$extensions as $className => $extension) {
            $ext = $this->getExtension($className, $extension);
            if ($ext->appliesTo($engine)) {
                $ext->update($engine);
            }
        }
        return $engine;
    }
private function applyExtensions ( TemplateEngineInterface $ engine ) { foreach ( static :: $ extensions as $ className => $ extension ) { $ ext = $ this -> getExtension ( $ className , $ extension ) ; if ( $ ext -> appliesTo ( $ engine ) ) { $ ext -> update ( $ engine ) ; } } return $ engine ; }
Apply defined extensions to the provided template engine

@param TemplateEngineInterface $engine

@return TemplateEngineInterface
Apply defined extensions to the provided template engine