Skip to content

Remove symfony/console, migrate console layer to entropy/entropy#27

Merged
TomasVotruba merged 2 commits into
mainfrom
tv-console
Jun 19, 2026
Merged

Remove symfony/console, migrate console layer to entropy/entropy#27
TomasVotruba merged 2 commits into
mainfrom
tv-console

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

ECS no longer depends on symfony/console. The console layer runs on entropy/entropy: commands implement Entropy's CommandInterface (run() params are the CLI contract), and a new EasyCodingStandardStyle wraps entropy's OutputPrinter/ProgressBar.

  • commands (Check/Worker/ListCheckers) implement entropy CommandInterface; delete AbstractCheckCommand and the Symfony console application
  • replace SymfonyStyle with EasyCodingStandardStyle over entropy output; delete SymfonyStyleFactory
  • ConfigurationFactory builds Configuration from plain args instead of InputInterface; container resolves config from raw argv
  • ParallelFileProcessor passes plain option values to the decoupled WorkerCommandLineFactory (symplify/easy-parallel dev-main)
  • bin/ecs.php parses argv manually (xdebug, --version via Composer InstalledVersions, decoration-flag stripping, -c to --config)
  • drop dead Option CLI-name constants
  • composer: drop symfony/console from require, satisfy php-cs-fixer's constraint via replace; require easy-parallel dev-main

ECS no longer depends on symfony/console. The console layer runs on
entropy/entropy: commands implement Entropy's CommandInterface (run()
params are the CLI contract), and a new EasyCodingStandardStyle wraps
entropy's OutputPrinter/ProgressBar.

- commands (Check/Worker/ListCheckers) implement entropy CommandInterface;
  delete AbstractCheckCommand and the Symfony console application
- replace SymfonyStyle with EasyCodingStandardStyle over entropy output;
  delete SymfonyStyleFactory
- ConfigurationFactory builds Configuration from plain args instead of
  InputInterface; container resolves config from raw argv
- ParallelFileProcessor passes plain option values to the decoupled
  WorkerCommandLineFactory (symplify/easy-parallel dev-main)
- bin/ecs.php parses argv manually (xdebug, --version via Composer
  InstalledVersions, decoration-flag stripping, -c to --config)
- drop dead Option CLI-name constants
- composer: drop symfony/console from require, satisfy php-cs-fixer's
  constraint via replace; require easy-parallel dev-main
- CommandRegistrationTest: commands are discovered and wired into
  Entropy's CommandRegistry (check/worker/list-checkers registered,
  check is default, worker is hidden)
- EasyCodingStandardStyleTest: Symfony console tags are translated into
  Entropy's OutputColorizer vocabulary (comment/info/options/closing)
@TomasVotruba TomasVotruba merged commit 54eb0bc into main Jun 19, 2026
7 checks passed
@TomasVotruba TomasVotruba deleted the tv-console branch June 19, 2026 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant