Aw: Re: [symfony-users] [sf2] get current environment in controller

2011-05-06 Thread Conrad
Thanks a lot Donald and Christophe -- 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@goo

Re: [symfony-users] [sf2] get current environment in controller

2011-05-06 Thread Donald Tyler
$this->container->get('kernel')->getEnvironment() On Fri, May 6, 2011 at 9:17 AM, Conrad wrote: > Hi all, > is it possible to get the current environment from inside the controller? > I'd like to separate some ajax json return messages for developers with the > stacktrace and for the public with

Re: [symfony-users] [sf2] get current environment in controller

2011-05-06 Thread Christophe COEVOET
Le 06/05/2011 16:17, Conrad a écrit : Hi all, is it possible to get the current environment from inside the controller? I'd like to separate some ajax json return messages for developers with the stacktrace and for the public with a nice 'oops, something went wrong' :) Thanks, Conrad The envi

[symfony-users] [sf2] get current environment in controller

2011-05-06 Thread Conrad
Hi all, is it possible to get the current environment from inside the controller? I'd like to separate some ajax json return messages for developers with the stacktrace and for the public with a nice 'oops, something went wrong' :) Thanks, Conrad -- If you want to report a vulnerability issue o