lib/Context.php
public function registerVariable($name, $value)
    {
        if (is_object($value)) {
            throw new \InvalidArgumentException('registerVariable(): Cannot pass objects, can only register primitive types; use registerInstance() instead');
        }

        $this->variablesByName[$name] = $value;
    }
public function registerVariable($name, $value)
    {
        if (is_object($value)) {
            throw new \InvalidArgumentException('registerVariable(): Cannot pass objects, can only register primitive types; use registerInstance() instead');
        }

        $this->variablesByName[$name] = $value;
    }
public function registerVariable ( $ name , $ value ) { if ( is_object ( $ value ) ) { throw new \ InvalidArgumentException ( 'registerVariable(): Cannot pass objects, can only register primitive types; use registerInstance() instead' ) ; } $ this -> variablesByName [ $ name ] = $ value ; }
Registers a primitive variable type by its name to the context.
If a variable with the same name is already registered, this will override it.

@param string $name
@param mixed $value
Registers a primitive variable type by its name to the context . If a variable with the same name is already registered this will override it .