-
Notifications
You must be signed in to change notification settings - Fork 525
Open
Description
Hello,
BuildCommand uses this method to get $composer with config:
/** @var SatisApplication|ComposerApplication $application */
$application = $this->getApplication();
if ($application instanceof SatisApplication) {
$composer = $application->getComposerWithConfig($config);
} else {
$composer = $application->getComposer(true);
}
satis/src/Console/Application.php
Line 77 in 7735ad2
public function getComposerWithConfig(mixed $config): ?Composer |
Unfortunately BaseCommand already creates $application->composer in BaseCommand::initialize() :
For me solution in Satis was to remove if (null === $this->composer) {
in Application::getComposerWithConfig() , called only in BuildCommand. Than $composer is recreated with config from .json "config" key, mentioned in docs here: https://composer.github.io/satis/using
Metadata
Metadata
Assignees
Labels
No labels