public function addExtensions($extensions)
    {
        foreach ($extensions as $extName) {
            $this->twig->addExtension(is_object($extName) ? $extName : Yii::createObject($extName));
        }
    }
public function addExtensions($extensions)
    {
        foreach ($extensions as $extName) {
            $this->twig->addExtension(is_object($extName) ? $extName : Yii::createObject($extName));
        }
    }
public function addExtensions ( $ extensions ) { foreach ( $ extensions as $ extName ) { $ this -> twig -> addExtension ( is_object ( $ extName ) ? $ extName : Yii :: createObject ( $ extName ) ) ; } }
Adds custom extensions
@param array $extensions @see self::$extensions
Adds custom extensions