Run a symfony console command.
Requires the Symfony Console component: Console Component
composer require symfony/console
The task lives under the symfony_console
namespace and has following configurable parameters:
# grumphp.yml
grumphp:
tasks:
symfony_console:
command: [ "lint:container", "-vvv" ]
Note: GrumPHP will use the default Symfony console path ./bin/console
from the project root.
command
Specify the symfony command with defined options and arguments.
Verify the installed console component version for available commands ./bin/console list
Run the same task twice with different configuration
Specific running multiple symfony console commands:
# grumphp.yml
grumphp:
lint-container:
command: [ "lint:container", "-vvv"]
metadata:
task: symfony_console
lint-yaml:
command: [ "lint:yaml", "path/to/yaml"]
metadata:
task: symfony_console