src/View/Twig.php
private function registerExtension(\Twig_Environment $twig)
    {
        $extensions = $this->getExtensions();
        if (count($extensions)) {
            foreach ($extensions as $key => $extension) {
                $this->load($twig, $key, $extension);
            }
        }
    }
private function registerExtension(\Twig_Environment $twig)
    {
        $extensions = $this->getExtensions();
        if (count($extensions)) {
            foreach ($extensions as $key => $extension) {
                $this->load($twig, $key, $extension);
            }
        }
    }
private function registerExtension ( \ Twig_Environment $ twig ) { $ extensions = $ this -> getExtensions ( ) ; if ( count ( $ extensions ) ) { foreach ( $ extensions as $ key => $ extension ) { $ this -> load ( $ twig , $ key , $ extension ) ; } } }
Register twig extensions.

@param \Twig_Environment $twig
Register twig extensions .