Aymen,

Take a look at the app/AppKernel.php[1] file. You can conditionally register
a bundle but note that bundles are initialized before the service
container[2].

regards,
Eriksen

[1]
https://github.com/symfony/symfony-standard/blob/master/app/AppKernel.php#L22
[2]
https://github.com/symfony/symfony/blob/2.0/src/Symfony/Component/HttpKernel/Kernel.php#L117

On Fri, Aug 12, 2011 at 3:32 PM, Lukas Kahwe Smith <[email protected]>wrote:

>
> On 08.08.2011, at 13:06, Aymen wrote:
>
> > Dear Devs,
> >
> > I'm working on a Symfony2 project and I want to register a bundle
> > dynamically following a condition after initialization of the
> > application.
> >
> > Is that possible to do? if so how
>
>
> you can put the logic into the AppKernel
>
> regards,
> Lukas Kahwe Smith
> [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
>

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