Register bundles in AppKernel automatically

58 views
Skip to first unread message

Remo Brunschwiler

unread,
Nov 13, 2012, 3:38:45 AM11/13/12
to terrific...@googlegroups.com
Is there a way to automatically register bundles in AppKernel? Or does this need some manual steps?

Remo Brunschwiler

unread,
Nov 13, 2012, 3:46:53 AM11/13/12
to terrific...@googlegroups.com
To have the maximum of control, this needs to be done manually. Nonetheless, If you have a look at the AppKernel.php of the Terrific Composer, all of the Modules – each of which is a separate Symfony2 bundle – are registered automatically by looping through the /src/Terrific/Module folder. 

This is possible, because all of the Modules share the same namespace. But for all other bundles I strongly recommend you to register them manually in AppKernel.php. As most of the 3rd party bundles need some configuration, there are some manual steps anyway.
Reply all
Reply to author
Forward
0 new messages