php bin/console make:controller

Creates a new controller class

Usage

make:controller [--no-template] [--] [<controller-class>]

Arguments

controller-class   Choose a name for your controller class (e.g. <fg=yellow>GrumpyKangarooController</>) 

Options

      --no-template   Use this option to disable template generation 

Help

The make:controller command generates a new controller class.

php bin/console make:controller CoolStuffController

If the argument is missing, the command will ask for the controller class name interactively.

You can also generate the controller alone, without template with this option:

php bin/console make:controller --no-template