Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get user class in twig #105

Open
fcpauldiaz opened this issue Mar 9, 2016 · 0 comments
Open

Get user class in twig #105

fcpauldiaz opened this issue Mar 9, 2016 · 0 comments
Labels

Comments

@fcpauldiaz
Copy link

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.

@garak garak added the question label Apr 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants