php bin/console make:twig-extension

Creates a new Twig extension with its runtime class

Usage

make:twig-extension [<name>]

Arguments

name   The name of the Twig extension class (e.g. <fg=yellow>AppExtension</>) 

Help

The make:twig-extension command generates a new twig extension with its runtime class.

php bin/console make:twig-extension AppExtension

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