On 1/16/11 3:52 PM, Thomas wrote:
Hello,
My guess is that the Application directory should be set in the app
folder. Why do we need a src folder with only one directory ?
app/ is where you store the app configuration. It is where you integrate
the code.
src/ is about classes.
By settings the vendor namespace at first is pretty good as it will
allow to have a structure like this :
* Sonata/Bundle : namespace with all bundles
* Sonata/Component : shared library across the same namespace (and
related bundles)
(Note: this current structure works just by adding a few lines in the
autoload.php file and the AppKernel.php file.)
Now, let's say the Sonata/Bundle/NewsBundle bundle need to be extended
(for instance the templates)
what should be the correct namespace structure for overwriting this bundle ?
* Application/Sonata/Bundle/NewsBundle
* Application/Sonata/NewsBundle
* Application/SonataNewsBundle
* Application/NewsBundle
It depends on how you configured the AppKernel and specifically the
registerBundleDirs() method.
I can see your point though as each time you add a new vendor, you will
have to register it in registerBundleDirs(), but I don't think this is
really a problem.
Fabien
Thomas
--
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