Kernel has to refresh contain on every request, so that there is no state left. Use $client->getContainer() to get ahold of the container
On Thu, Apr 7, 2011 at 12:45 PM, Pablo Díez <[email protected]> wrote: > Hi, > > I am just making some funcional tests and according to this code the kernel > is shutdown when a request is done, so I cannot access to the services and > test what the controllers do, with the model for instance. > > > https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/FrameworkBundle/Client.php#L91 > > Is this done for any reason? How should I access to the services to try > what the controllers do? > > Thanks, > Pablo > > -- > *Pablo Díez | @pablodip* > MondonGO Lead Developer > http://mondongo.es > > -- > 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 developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/symfony-devs?hl=en > -- *Bulat Shakirzyanov* | Software Alchemist *a: *about.me/avalanche123 *e:* [email protected] -- 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 developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en
