We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed21510 commit 9de1cbeCopy full SHA for 9de1cbe
src/Commands/RequireCommand.php
@@ -15,7 +15,9 @@ final public function __construct(
15
protected Composer $composer,
16
protected string $package,
17
protected bool $dryRun = false,
18
- protected bool $dev = false
+ protected bool $dev = false,
19
+ protected bool $noUpdate = false,
20
+ protected bool $noScripts = false,
21
) {
22
parent::__construct($composer);
23
}
@@ -35,6 +37,14 @@ public function arguments(): array
35
37
$arguments['--dev'] = true;
36
38
39
40
+ if ($this->noUpdate) {
41
+ $arguments['--no-update'] = true;
42
+ }
43
+
44
+ if ($this->noScripts) {
45
+ $arguments['--no-scripts'] = true;
46
47
48
$arguments['packages'] = [$this->package];
49
50
return $arguments;
0 commit comments