Silex gives you access to the app
instance directly from Twig.
So you could do:
{{ app.security.token ? app.security.token.user.twigInfo : null }}
or
{% set userinfo = app.security.token ? app.security.token.user.twigInfo : null %}
{{ userinfo }}
If you prefer to handle it within your PHP code, then you can create a new definition
$app['userinfo'] = $app->share(function($app) {
$token = $app['security']->getToken();
return (null !== $token) ? $token->getUser()->getTwigInfo() : null;
}));
Then in your Twig template
{{ app.userinfo }}