Symfony 7 · Code generation (MakerBundle)
Create a controller
Generate a controller class and a Twig template.
php bin/console make:controller ProductController
Official Symfony 7 documentation
More code generation (makerbundle) commands
- Install MakerBundle
- Create or update an entity
- Generate CRUD for an entity
- Create a form type
- Create a user class
- Create a login form
All code generation (makerbundle) commands · Symfony 7 cheatsheet