phpro / grumphp

A PHP code-quality tool
MIT License
4.15k stars 431 forks source link

[Task] Add bin/console task for Symfony #1126

Closed veewee closed 5 months ago

veewee commented 8 months ago
Q A
Version next
Bug? no
New feature? yes
Question? no
Documentation? no
Related tickets

Provide a task that makes it possible to run Symfony's bin/console with a specific command:

tasks:
  symfony_console:
    command: [ "lint:container", "-vvv"]

This will run : "./bin/console" "lint:container" "-vvv"

If the command fails (non-zero exit code), the grumphp task fails.

Running multiple symfony console commands (in parallel) is already covered:

tasks:
  lint-container:
    command: [ "lint:container", "-vvv"]
    metadata:
      task: symfony_console
veewee commented 5 months ago

Closing for now, we'll continue in the PR.