PUGX / PUGXMultiUserBundle

An extension for FOSUserBundle to handle users of different types. Compatible with Doctrine ORM.
163 stars 96 forks source link

Get user class in twig #105

Open fcpauldiaz opened 8 years ago

fcpauldiaz commented 8 years ago

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.