In controller i can read like this
$this->container->getParameter(\'test\');
But how get this var \"test\" in my twig template?
Yes, you can create your own Twig extension, in this class you can override getGlobals() and return an array with your global variables.
getGlobals()
Or you can create a Twig method in this extension param($value) to return the right parameter.
param($value)