-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 10.03.2011, at 10:13, David Buchmann wrote: > are there any naming / namespacing guidelines regarding the structure of > a bundle? a current example that is not evident from looking at other > modules: I think first up we need to figure out the namespace of the CMF itself. IMHO we should do the following: \Symfony\Bundle\DoctrinePhpcrBundle \Symfony\Cmf\Bundle\OtherBundle \Symfony\Cmf\Component\NotABundleThingi > for the cmf, we will create a couple of bundles that will have some > functionality that does not belong into the controller. for example, the > navigation bundle reads phpcr hierarchies that can then be used to > create menus. this is a basic service that other controllers can use. > now we could namespace this service into Helpers, but i feel this serice > is more than a helper. i called the namespace "Services", but am not > sure if this is a good idea. are there guidelines that define such cases? there is: http://symfony.com/doc/2.0/book/bundles.html which obviously doesnt cover everything. i think for for helper services we could either go with "Service" or "Helper" (aka singular) > oh, and while i am asking for concepts: is there an exception policy in > symfony2, or a set of standard exceptions to be used in bundles? In general we should try to reuse SPL Exception as much as possible: http://www.webdevblog.info/php/13-predefined-spl-exception-classes/ regards, Lukas Kahwe Smith [email protected] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) iEYEARECAAYFAk15N/wACgkQ2FnmJDTfRPeRpQCgoiYwsDhLP6vhCm/U3qavDa// nKcAoJoHxf8WrfkYSP1ROdfK4SwoQagd =4X4H -----END PGP SIGNATURE----- -- 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
