Hi, Before Security fix on Symfony2, i have a possibility to use a function controller in internal with twig render.
My example: ------------------- Controller: ------------------- class SecurityController extends Controller { ... /** * @Template() */ public function usernameAction() { $user = $this->container->get('security.context')->getToken()->getUser(); return array('user' => $user); } } ------------------- Template: ------------------- {% render 'FooBarBundle:Security:username' } I don't have any route definition on this. This is an internal call With the new syntax, is it possible to make the same ? I don't find the solution. Thank's Bertrand -- -- If you want to report a vulnerability issue on Symfony, please read the procedure on http://symfony.com/security You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to symfony-devs@googlegroups.com To unsubscribe from this group, send email to symfony-devs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en