Could you please provide some piece of code? 2011/4/16 Jordi Boggiano <j.boggi...@seld.be>
> On 15.04.2011 09:23, noRerih wrote: > > Hi all, is there way to execute some code before (and after) every > > action in Symfony2? Constructor doesn't work 'cause it invokes before > > services are launched and has no access to them, and therefore I can't > > get Request object. > > You should look into register core.request and core.response event > listeners, they can receive any service, including the request. > > Cheers > > -- > Jordi Boggiano > @seldaek :: http://seld.be/ > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- С уважением, Александр Каупанин. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en