PUGXMultiUserBundle icon indicating copy to clipboard operation
PUGXMultiUserBundle copied to clipboard

Get user class in twig

Open fcpauldiaz opened this issue 9 years ago • 0 comments

Is there a way to get the user class in twig? Something equivalent to this

$discriminator = $this->container->get('pugx_user.manager.user_discriminator');
$class = $discriminator->getClass();

I want to change the routing depending on the user class.

fcpauldiaz avatar Mar 09 '16 19:03 fcpauldiaz