Extending bundles

Discuss Symfony 2 bundles here

Moderators: dcobalt, tiagojsag

Extending bundles

Postby wigwam » Tue May 01, 2012 10:16 pm

Hi,

I'm really new to Symfony, and have been reading through some of the documentation this afternoon. All of the basic examples I have seen have all extended the Bundles class, which is fine. I've also seen that it is possible to extend other classes, again, which is fine. I have a couple of questions around the extending though.

1. Is there a limit on the number of times you can extend down the "tree"?
2. Instead of having to reference a bundle such as a/b/c/MyClass as MyClassToExtend, is there anyway of just having the "as" bit reference the name of the classfile?her

What we are looking to do is something along the following:

RegionDealerClass extends Bundle{}
CountyDealerClass extends RegionDealerClass {}
TownDealerClass extends CountyDealerClass {}

Is this possible through some config file that i haven't got to yet? Or do we have to use the "as" syntax?

TIA

Tony
wigwam
Junior Member
 
Posts: 1
Joined: Tue May 01, 2012 10:05 pm

Return to Bundles discussion

Who is online

Users browsing this forum: Google [Bot] and 2 guests