Yes, I access through the $client->getContainer() method, but it uses the
kernel, and the kernel is not booted...

I have sent a pull request simply to shutdown the kernel before of doing the
request. This way the kernel is also refresh and we can access to a booted
kernel later of doing a request.

https://github.com/symfony/symfony/pull/512

Thanks,
Pablo

On Thu, Apr 7, 2011 at 7:46 PM, Bulat Shakirzyanov <[email protected]>wrote:

> 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
>



-- 
*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

Reply via email to