Symfony2 has a command for generating controllers
http://symfony.com/doc/current/bundles/SensioGeneratorBundle/commands/generate_controller.html
Command's default behavior is to generate the given controller inside controller
folder within the bundle.
Is it possible to customize the folder where the controller will be generated ( controller/backend
for example ) ?
YourBundle\Controller
. By the way, may you want create your owngenerate:controller
. Have a look at How to create a basic command – Debflav