Open pretzlaw opened 6 years ago
Satis is entirely maintained and developed by volunteers and open source contributors. It is not actively developed by the Composer core team. We encourage everyone to submit PRs and we will (often) gladly accept them. I can mark your issue as a feature request, but keep in mind that it is up to you or someone else to deliver said feature :-)
Symfony allows something like this:
to run a command within another ( see https://symfony.com/doc/current/console/calling_commands.html ).
Unfortunately this is not possible with Satis because
::run()
depends on the properties\Composer\Satis\Console\Application::$io
and/or\Composer\Satis\Console\Application::$composer
to be initialized already.Those two are initialized in
\Composer\Satis\Console\Application::doRun()
. But doing$app->doRun(...)
is a bad solution because it exits (like anexit() || die()
) after executing. Except you set\Composer\Satis\Console\Application::$autoExit = false
. And if you feel confused now, then you also feel what the problem is.So please initialize the two properties a bit earlier so that Satis can be used extended that way.