On Sun, Jan 16, 2011 at 3:04 PM, Fabien Potencier <[email protected]> wrote: > The first question is: What about moving ALL code that does not belong to > the application to the vendor/ directory, outside the src/ one:
+1 definitely, at least for the current vendor dir. The Bundle/ I think should not be moved, because those are Symfony2-specific, and it also means that if you want to override some template or something you can put it in Application/ following the same path as what was in Bundle/. If this moves into /vendor/Bundle/.. it becomes more complicated to explain imo. > That way, src/ only contains the code for your specific application: > > src/ > Application/ > ... I wonder if the Application namespace shouldn't be renamed to something else. If the goal is to have multiple applications into one same folder, then you could end up with src/Frontend, src/Backend, src/Admin. Application could still be the default for people that want it all in one though. What about calling it App? To match the app.config etc (..and also to make it shorter because it's pretty damn long to type, but this alone shouldn't be a reason) > So, instead of: > > Bundle\Sensio\CasBundle > > We should probably have: > > Sensio\Symfony\Bundle\CasBundle > > This has many advantages like: > > * It follows the interoperability standard; > * If allows to easily package your "plain PHP" code (think Model here) and > your Symfony bundles under the same namespace: > > Sensio\Symfony\Bundle\... > Sensio\Doctrine\Extension\... > Sensio\Design\... This probably means you also break (or make more difficult) the possibility to override files from Resources/, see my first paragraph. If this is the case I think it's a bad idea, but otherwise I agree the advantages are nice. Cheers -- Jordi Boggiano @seldaek :: http://seld.be/ -- 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
