Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 1.05 KB

symfony_console.md

File metadata and controls

47 lines (34 loc) · 1.05 KB

Symfony Console

Run a symfony console command.

Composer

Requires the Symfony Console component: Console Component

composer require symfony/console

Config

The task lives under the symfony_console namespace and has following configurable parameters:

# grumphp.yml
grumphp:
    tasks:
        symfony_console:
            command: [ "lint:container", "-vvv" ]

command

Specify the symfony command with defined options and arguments.
Verify the installed console component version for available commands ./bin/console list

Note: Multiple Console command tasks

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