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. On Sat, Jan 29, 2011 at 6:22 PM, Gustavo Adrian <[email protected] > wrote: > How does this feature work? if a bundle inherits from another one, it means > you can access the parent's services and optionally override them? so let's > say I have a ModuleManagerBundle with this service: > > <service id="module_manager" class="%module_manager_class%" /> > > How would I override this service from a bundle that's called, let's say, > ModuleManagerExtraBundle, that extends ModuleManagerBundle? > > > Thanks guys. > > > On Fri, Jan 28, 2011 at 5:24 PM, Lukas Kahwe Smith <[email protected]>wrote: > >> >> On 27.01.2011, at 19:07, Gustavo Adrian wrote: >> >> > 1) Tags are just a way to group services that have common >> functionalities under a name (tag), so then you can access them like a >> collection, without having to know their IDs. Right? >> > 2) I saw in the thread you mentioned Venzon. But what I still don't know >> is: if you override a service from a bundle (being just a parameter or the >> whole service definition), in which order does the final override occurs? is >> the order defined with the order in which you instantiante bundles in the >> method "registerBundles" of the AppKernel class? >> > 3) If a bundle has a parent bundle (defined with the getParent method >> added some days ago) can it access the services from the parent? >> >> Another approach is to use inheritance that was added recently. >> This way you could make a template service config, which you can then >> inherit and selectively override. >> >> 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]<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
