Le 04/01/2013 15:06, Bertrand Zuchuat a écrit :
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
there is a WIP to add the feature back without the security issue (and
making the management of subrequests more flexible at the same time):
https://github.com/symfony/symfony/pull/6459
--
Christophe | Stof
--
--
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