fabpot/Twig — Issue #594: Editing Globals
Author: ConneXNL
Created: 2012-01-13 13:45:57+00:00
State: open

Recently i updated Twig and SF2 and my scripts broke because you are no longer able to use getGlobals() to update or edit an existing global.

An editGlobal() or a way to access globals would be a nice thing to have.

Currently this breaks because of the changes to the getGlobals() function:

$this->globals = isset($this->staging['globals']) ? $this->staging['globals'] : array();

This results in the fact that whenever you do getGlobals() in SF2 you get the error:
Variable "app" does not exist in