Skip to content

fix: replace deprecated add() with addCommands() in bin/aspect#576

Merged
lisachenko merged 1 commit into
masterfrom
fix/symfony-console-add-commands
May 13, 2026
Merged

fix: replace deprecated add() with addCommands() in bin/aspect#576
lisachenko merged 1 commit into
masterfrom
fix/symfony-console-add-commands

Conversation

@lisachenko
Copy link
Copy Markdown
Member

Summary

  • Replaces Application::add() (removed in Symfony Console 8.x) with addCommands()
  • Adds a unit test verifying all 4 console commands are properly registered on the application

Test plan

  • bin/aspect list shows all 4 commands (cache:warmup:aop, debug:aspect, debug:advisor, debug:weaving)
  • New ApplicationTest passes with 2 tests, 6 assertions
  • All existing Console tests continue to pass (5 tests, 23 assertions)

Closes #575

🤖 Generated with Claude Code

Symfony Console 8.x removed the Application::add() method. Switch to
the addCommands() API and add a functional test that executes the
actual bin/aspect CLI to verify all commands are properly registered.

Closes #575

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@lisachenko lisachenko force-pushed the fix/symfony-console-add-commands branch from ea434ee to 9b971fb Compare May 13, 2026 23:03
@lisachenko lisachenko merged commit 5b2ff53 into master May 13, 2026
5 checks passed
@lisachenko lisachenko deleted the fix/symfony-console-add-commands branch May 13, 2026 23:16
@lisachenko lisachenko added this to the 4.0.0 milestone May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Broken cli tool

1 participant