Hi, I think I come after the fight.

Here is my suggested directory structure:
/<App> (config files and tmp files)
    /autoload.php
/src
    /<App>
        /xxxBundle
        /Kernel.php
    /<Company>
        /zzzBundle
    /Symfony
        /FrameworkBundle
        /TwigBundle
        /SwiftmailerBundle
        /WebProfilerBundle
    /Doctrine
        /AbstractBundle(BaseBundle?)
        /DbalBundle
        /OrmBundle
    /Zend
        /LogBundle
    /...
/lib (/lib)
    /doctrine
    /symfony (only components)
    /zend
    /...

Here is the explainations:
 - /<App>:
   It is named as the website you provide. That contains only the
configuration and temporary files.

 - /src:
   That contains only bundles(your application bundles, your company
bundles and 3rd-party bundles used by the application.
   I have moved the <App>Kernel.php because it is a class and also
because of Fabien explaination
   (/App is where your config and tmp files reside and /src is about
classes).
   I have also moved Doctrine bundles and Zend bundles to their own
namespace due to their weird namespace
   (Symfony\Bundle\ZendBundle => Zend\LogBundle and Symfony\Bundle
\DoctrineBundle => Doctrine\OrmBundle).

 - /lib (/vendor for you)
   That contains all the external libraries used by the specific and
3rd-party bundles.
   I specify that the symfony components should be only here cause
each Symfony components are standalone.
   I want also prevent you about component version collision that can
be came when 2 or more bundles use the same external library
   but not the same version. To avoid this situation, I suggest you to
set the version in the directory (ex: /doctrine-common => /
doctrine_common-v2.0.0).

Otherwise, I hope in a near future, external libraries will be shared
as phar files like that, all will be put under lib directory, even the
3rd-party bundles.

-- 
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