Hi, I'm learning to use twig, and I can not assign a variable to use in all the templates, in the documentation it says
$twig = new Twig_Environment($loader);
$twig->addGlobal('text', new Text());
and I use it like that
$twig = new Twig_Environment($loader);
$twig->addGlobal('tsConfig', $tsCore->settings);
and you do not give me anything in the template, how should I do it?