On 23.01.2011, at 12:47, Fabien Potencier wrote: > And here are some existing examples: > > * Symfony vendor: Symfony\Bundle\FrameworkBundle > > * Sensio vendor: Sensio\Bundle\CasBundle > > * Liip vendor: Liip\ViewBundle\LiipViewBundle
AFAIK the best practices atm state it should be SymfonyFrameworkBundle and SensioCasBundle, but personally I do not really have a preferences if the vendor name is part of the bundle class or not. Another thing that I have noticed is that the Bundle alias should probably also have the vendor name included, or should be automatically append it? view.config: ~ vs. liip.view.config: ~ > The 'Bundle' category better separates things and is probably a good idea if > you have many things to store under your namespace. > And for big namespaces, it can be interesting to also add a Symfony > category in-between. Let's take another example. I think that the > DoctrineBundle should be under the Doctrine vendor namespace (note that it is > a matter of how we see things: Does Symfony provides support for Doctrine or > is it the other way around.). Well to me the question of in which namespace it should live is obvious: Which organization publishes the code? Right now its Symfony. If the DoctrineBundle gets moved to github.com/Doctrine/DoctrineBundle, then it would be Doctrine. > Anyway, here are all the sensible possibilities I can think of: > > * Doctrine\DoctrineBundle > * Doctrine\Bundle\DoctrineBundle > * Doctrine\Symfony\DoctrineBundle > * Doctrine\Symfony\Bundle\DoctrineBundle > > Which one makes more sense? As the bundles are suffixed by Bundle, I think > that 'Doctrine\Symfony\DoctrineBundle' is the best one. But I also like the > explicit Bundle category. Given the fact that DoctrineBundle is published by Symfony atm it should be: Symfony\Bundle\DoctrineBundle 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] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en
