Skip to content

Replace deprecated Application::add() and enhance ParallelExec#1186

Closed
humanik wants to merge 2 commits into
consolidation:5.xfrom
humanik:5.x
Closed

Replace deprecated Application::add() and enhance ParallelExec#1186
humanik wants to merge 2 commits into
consolidation:5.xfrom
humanik:5.x

Conversation

@humanik

@humanik humanik commented Feb 25, 2026

Copy link
Copy Markdown

Overview

This pull request:

  • Fixes a bug
  • Adds a feature
  • Breaks backwards compatibility
  • Has tests that cover changes
  • Adds or fixes documentation

Summary

Replace deprecated Symfony Console add() method with addCommand() across all source and test files, and allow passing Process instances directly to ParallelExec::process().

Description

Commit 1: Allow passing Process instances directly to ParallelExec::process()

  • ParallelExec::process() now accepts a Process instance in addition to strings and CommandInterface objects, giving users more flexibility when configuring parallel tasks.

Commit 2: Replace deprecated Application::add() with addCommand()

  • Symfony Console deprecated Application::add() in favor of addCommand(). All usages across Application.php, Robo.php, Runner.php, and test files have been updated accordingly.

Symfony Console deprecated the add() method in favor of addCommand().
Update all usages across source and test files.
@andypost

Copy link
Copy Markdown
Contributor

I decided to add a trait to annotated command package so both robo and config can reuse trait with compatibility call
#1187

@humanik humanik closed this by deleting the head repository Apr 10, 2026
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.

3 participants