php bin/console make:controller

Create a new controller class

Usage

make:controller [--no-template] [-i|--invokable] [--] [<controller-class>]

Arguments

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

Options

      --no-template   Use this option to disable template generation 
-i,   --invokable     Use this option to create an invokable controller 

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