phpro / grumphp

A PHP code-quality tool
MIT License
4.11k stars 429 forks source link

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

Closed veewee closed 2 weeks ago

veewee commented 4 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 2 weeks ago

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