public function addGlobals($globals)
    {
        foreach ($globals as $name => $value) {
            if (is_array($value) && isset($value['class'])) {
                $value = new ViewRendererStaticClassProxy($value['class']);
            }
            $this->twig->addGlobal($name, $value);
        }
    }
public function addGlobals($globals)
    {
        foreach ($globals as $name => $value) {
            if (is_array($value) && isset($value['class'])) {
                $value = new ViewRendererStaticClassProxy($value['class']);
            }
            $this->twig->addGlobal($name, $value);
        }
    }
public function addGlobals ( $ globals ) { foreach ( $ globals as $ name => $ value ) { if ( is_array ( $ value ) && isset ( $ value [ 'class' ] ) ) { $ value = new ViewRendererStaticClassProxy ( $ value [ 'class' ] ) ; } $ this -> twig -> addGlobal ( $ name , $ value ) ; } }
Adds global objects or static classes
@param array $globals @see self::$globals
Adds global objects or static classes