private function registerTwigExtensions ()
    {
        $this['twig'] = $this->share($this->extend('twig',
            function (Twig_Environment $twig, Application $app)
            {
                // add custom extension
                $twig->addExtension(new TwigExtension($app));

                // add global gluggi variable
                $twig->addGlobal("gluggi", [
                    "config" => $this["gluggi.config"]
                ]);

                return $twig;
            }
        ));
    }
private function registerTwigExtensions ()
    {
        $this['twig'] = $this->share($this->extend('twig',
            function (Twig_Environment $twig, Application $app)
            {
                // add custom extension
                $twig->addExtension(new TwigExtension($app));

                // add global gluggi variable
                $twig->addGlobal("gluggi", [
                    "config" => $this["gluggi.config"]
                ]);

                return $twig;
            }
        ));
    }
private function registerTwigExtensions ( ) { $ this [ 'twig' ] = $ this -> share ( $ this -> extend ( 'twig' , function ( Twig_Environment $ twig , Application $ app ) { // add custom extension $ twig -> addExtension ( new TwigExtension ( $ app ) ) ; // add global gluggi variable $ twig -> addGlobal ( "gluggi" , [ "config" => $ this [ "gluggi.config" ] ] ) ; return $ twig ; } ) ) ; }
Registers all used twig extensions
Registers all used twig extensions