If there are multiple childs, maybe it could take into account the order in
which they were added in the "registerBundles" method? Maybe I still don't
know the real purpose of the inheritance. This feature was included to give
child's services access to the services of its parent bundle?. If that's so,
it would be nice to have a 1:n relation between bundles.

And thinking about it, this feature could also be used to establish the
order in which the assets are included. In my case, having this tree:

ModuleManagerBundle
|_ BusinessPartnerBundle
   |_ CustomerBundle
   |_ SupplierBundle

Their JS's could be included in this order:

module_manager.js
business_partner.js
customer_bundle.js
supplier_bundle.js

I don't know. I'm just sharing my thoughts. Maybe this feature could break
something I'm not aware of.


Regards.


On Wed, Feb 2, 2011 at 1:49 PM, stof <[email protected]> wrote:

> On Wed, 2 Feb 2011 12:55:58 -0300, Gustavo Adrian
> <[email protected]> wrote:
> > Ok I managed to use the inheritance feature for bundles (using the
> > getParent
> > method). But the problem, at least with my use case, is that it seems
> that
> > a
> > Bundle can't have multiple childs.
> >
> > Is there a plan to add this feature in the future?
> >
> >
> > Thanks in advance.
> >
>
> I don't see how it could work: when accessing a template of a bundle, the
> kernel will first try in the child bundle and then fallback to the bundle
> if it is not overriden. How would you handle the case of multiple childs to
> choose the one that overrides the template ?
>
> Btw, supporting multiple parents seems quite easy but it is not the case
> currently.
>
> --
> Christophe | Stof
>
> --
> 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]<symfony-devs%[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