Generating Controllers To save time, you can install Symfony Maker and tell Symfony to generate a new controller class:
php bin/console make:controller BrandNewController
created: src/Controller/BrandNewController.php If you want to generate an entire CRUD from a Doctrine entity, use:
php bin/console make:crud Product