public function addGlobal() {
        foreach ($this->getIndex() as $k => $v) {
            if (null === $v) {
                continue;
            }
            $this->getTwigEnvironment()->addGlobal(str_replace("Interface", "", $k), $this->getProviders()[$v]);
        }
    }
public function addGlobal() {
        foreach ($this->getIndex() as $k => $v) {
            if (null === $v) {
                continue;
            }
            $this->getTwigEnvironment()->addGlobal(str_replace("Interface", "", $k), $this->getProviders()[$v]);
        }
    }
public function addGlobal ( ) { foreach ( $ this -> getIndex ( ) as $ k => $ v ) { if ( null === $ v ) { continue ; } $ this -> getTwigEnvironment ( ) -> addGlobal ( str_replace ( "Interface" , "" , $ k ) , $ this -> getProviders ( ) [ $ v ] ) ; } }
Add the global.

@return void
Add the global .