Skip to content

Commit 0eed0b4

Browse files
authored
Add support for withAllDependencies to Update command
1 parent 37f504a commit 0eed0b4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Commands/Update.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ final public function __construct(
7676
protected string $installPreference = 'none',
7777
protected bool $ignoreScripts = false,
7878
protected bool $dryRun = false,
79-
protected ?string $package = null
79+
protected ?string $package = null,
80+
protected bool $withAllDependencies = false
8081
) {
8182
parent::__construct($composer);
8283

@@ -331,6 +332,10 @@ protected function arguments(): array
331332
$arguments['--no-scripts'] = true;
332333
}
333334

335+
if ($this->withAllDependencies) {
336+
$arguments['--with-all-dependencies'] = true;
337+
}
338+
334339
if (in_array($this->installPreference, [self::PREFER_DIST, self::PREFER_SOURCE])) {
335340
$arguments['--prefer-' . $this->installPreference] = true;
336341
}

0 commit comments

Comments
 (0)