Skip to content

Conversation

@ryanrath
Copy link
Contributor

@ryanrath ryanrath commented Jan 23, 2026

Description

  • Added a new Helper class / function SymfonyCommandHelper::executeCommand.
  • Updated GeneralSetup to use SymfonyCommandHelper::executeCommand.
  • Updated DotEnvConfigMigration to use SymfonyCommandHelper::executeCommand

Motivation and Context

These changes allow us to execute Symfony commands programmatically as
opposed to using exec to start a new process. This means that we are
not dependent on there being a bin/console file being present.

Tests performed

All

Checklist:

  • The pull request description is suitable for a Changelog entry
  • The milestone is set correctly on the pull request
  • The appropriate labels have been added to the pull request

@ryanrath ryanrath added this to the 11.5.0 milestone Jan 23, 2026
@ryanrath ryanrath added autodoc:ignore Auto documentation ignore this PR Symfony labels Jan 23, 2026
These changes allow us to execute Symfony commands programmatically as
opposed to using `exec` to start a new process. This means that we are
not dependent on there being a `bin/console` file being present.
Since this logic is used in a number of places I've refactored it into
helper class that can then be used instead of duplicating code.
@ryanrath ryanrath force-pushed the programmify-command-execution branch from 58b1886 to 437054a Compare January 29, 2026 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autodoc:ignore Auto documentation ignore this PR Symfony

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant