Total Complexity | 4 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | class ComposerInstallSimple extends Task |
||
16 | { |
||
17 | protected $taskStep = 's20'; |
||
18 | |||
19 | protected $versionToLoad = ''; |
||
20 | |||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $composerOptions = '--prefer-dist'; |
||
26 | |||
27 | public function getTitle() |
||
28 | { |
||
29 | return 'use Composer to install requirements.'; |
||
30 | } |
||
31 | |||
32 | public function getDescription() |
||
33 | { |
||
34 | return ''; |
||
35 | } |
||
36 | |||
37 | public function runActualTask($params = []): ?string |
||
38 | { |
||
39 | $this->mu()->setBreakOnAllErrors(true); |
||
|
|||
40 | $command = ' |
||
41 | composer install ;'.$this->composerOptions; |
||
42 | $this->mu()->execMe( |
||
43 | $this->mu()->getGitRootDir(), |
||
44 | $command, |
||
45 | 'Basic composer install', |
||
46 | false |
||
47 | ); |
||
48 | |||
49 | $this->mu()->setBreakOnAllErrors(false); |
||
50 | return null; |
||
51 | } |
||
52 | |||
53 | |||
54 | protected function hasCommitAndPush() |
||
57 | } |
||
58 | } |
||
59 |