|
1 | 1 | # Composer Tasks
|
2 | 2 |
|
| 3 | +## CheckPlatformReqs |
| 4 | + |
| 5 | + |
| 6 | +Composer Check Platform Requirements |
| 7 | + |
| 8 | +``` php |
| 9 | +<?php |
| 10 | +// simple execution |
| 11 | +$this->taskComposerValidate()->run(); |
| 12 | +?> |
| 13 | +``` |
| 14 | + |
| 15 | +* `preferDist($preferDist = null)` adds `prefer-dist` option to composer |
| 16 | +* `preferSource()` adds `prefer-source` option to composer |
| 17 | +* `dev($dev = null)` adds `dev` option to composer |
| 18 | +* `noDev()` adds `no-dev` option to composer |
| 19 | +* `ansi($ansi = null)` adds `ansi` option to composer |
| 20 | +* `noAnsi()` adds `no-ansi` option to composer |
| 21 | +* `interaction($interaction = null)` * `param bool` $interaction |
| 22 | +* `noInteraction()` adds `no-interaction` option to composer |
| 23 | +* `optimizeAutoloader($optimize = null)` adds `optimize-autoloader` option to composer |
| 24 | +* `ignorePlatformRequirements($ignore = null)` adds `ignore-platform-reqs` option to composer |
| 25 | +* `disablePlugins($disable = null)` disable plugins |
| 26 | +* `noScripts($disable = null)` skip scripts |
| 27 | +* `workingDir($dir)` adds `--working-dir $dir` option to composer |
| 28 | +* `buildCommand()` Copy class fields into command options as directed. |
| 29 | +* `dir($dir)` Changes working directory of command |
| 30 | +* `arg($arg)` Pass argument to executable. Its value will be automatically escaped. |
| 31 | +* `args($args)` Pass methods parameters as arguments to executable. Argument values |
| 32 | +* `rawArg($arg)` Pass the provided string in its raw (as provided) form as an argument to executable. |
| 33 | +* `option($option, $value = null, $separator = null)` Pass option to executable. Options are prefixed with `--` , value can be provided in second parameter. |
| 34 | +* `options(array $options, $separator = null)` Pass multiple options to executable. The associative array contains |
| 35 | +* `optionList($option, $value = null, $separator = null)` Pass an option with multiple values to executable. Value can be a string or array. |
| 36 | + |
3 | 37 | ## Config
|
4 | 38 |
|
5 | 39 |
|
@@ -378,37 +412,3 @@ $this->taskComposerValidate()->run();
|
378 | 412 | * `options(array $options, $separator = null)` Pass multiple options to executable. The associative array contains
|
379 | 413 | * `optionList($option, $value = null, $separator = null)` Pass an option with multiple values to executable. Value can be a string or array.
|
380 | 414 |
|
381 |
| -## CheckPlatformReqs |
382 |
| - |
383 |
| - |
384 |
| -Composer CheckPlatformReqs |
385 |
| - |
386 |
| -``` php |
387 |
| -<?php |
388 |
| -// simple execution |
389 |
| -$this->taskComposerCheckPlatformReqs()->run(); |
390 |
| -?> |
391 |
| -``` |
392 |
| - |
393 |
| -* `preferDist($preferDist = null)` adds `prefer-dist` option to composer |
394 |
| -* `preferSource()` adds `prefer-source` option to composer |
395 |
| -* `dev($dev = null)` adds `dev` option to composer |
396 |
| -* `noDev()` adds `no-dev` option to composer |
397 |
| -* `ansi($ansi = null)` adds `ansi` option to composer |
398 |
| -* `noAnsi()` adds `no-ansi` option to composer |
399 |
| -* `interaction($interaction = null)` * `param bool` $interaction |
400 |
| -* `noInteraction()` adds `no-interaction` option to composer |
401 |
| -* `optimizeAutoloader($optimize = null)` adds `optimize-autoloader` option to composer |
402 |
| -* `ignorePlatformRequirements($ignore = null)` adds `ignore-platform-reqs` option to composer |
403 |
| -* `disablePlugins($disable = null)` disable plugins |
404 |
| -* `noScripts($disable = null)` skip scripts |
405 |
| -* `workingDir($dir)` adds `--working-dir $dir` option to composer |
406 |
| -* `buildCommand()` Copy class fields into command options as directed. |
407 |
| -* `dir($dir)` Changes working directory of command |
408 |
| -* `arg($arg)` Pass argument to executable. Its value will be automatically escaped. |
409 |
| -* `args($args)` Pass methods parameters as arguments to executable. Argument values |
410 |
| -* `rawArg($arg)` Pass the provided string in its raw (as provided) form as an argument to executable. |
411 |
| -* `option($option, $value = null, $separator = null)` Pass option to executable. Options are prefixed with `--` , value can be provided in second parameter. |
412 |
| -* `options(array $options, $separator = null)` Pass multiple options to executable. The associative array contains |
413 |
| -* `optionList($option, $value = null, $separator = null)` Pass an option with multiple values to executable. Value can be a string or array. |
414 |
| - |
0 commit comments