src/template/twig/ViewRenderer.php
public function addGlobals($globals)
    {
        foreach ($globals as $name => $value) {
            if (!is_object($value)) {
                $value = new ViewRendererStaticClassProxy($value);
            }
            $this->twig->addGlobal($name, $value);
        }
    }
public function addGlobals($globals)
    {
        foreach ($globals as $name => $value) {
            if (!is_object($value)) {
                $value = new ViewRendererStaticClassProxy($value);
            }
            $this->twig->addGlobal($name, $value);
        }
    }
public function addGlobals ( $ globals ) { foreach ( $ globals as $ name => $ value ) { if ( ! is_object ( $ value ) ) { $ value = new ViewRendererStaticClassProxy ( $ value ) ; } $ this -> twig -> addGlobal ( $ name , $ value ) ; } }
Adds a global objects or static classes
@param array $globals @see self::$globals
Adds a global objects or static classes