Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 1.16 KB

symfony_console.md

File metadata and controls

51 lines (36 loc) · 1.16 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" ]

Note: GrumPHP will use the default Symfony console path ./bin/console from the project root.

Parameters

command

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

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