Le 02/02/2011 18:25, Gustavo Adrian a écrit :
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.
the inheritance is meant to be able to override templates of a bundle.
So when you request ModuleManagerBundle:Main:index.html.twig, it will
first search in the child bundle for a Main/index.html.twig template to
let you change the template.
This is not a way to handle dependencies. Accessing to services is done
through the DIC which is and so accessing to a service defined in
another bundle only means you have a dependency, not that you overwrite it.
--
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]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en