@@ 62-73 (lines=12) @@ | ||
59 | * |
|
60 | * @throws PluginException |
|
61 | */ |
|
62 | public function execRequire($packageName, $output = null) |
|
63 | { |
|
64 | set_time_limit(0); |
|
65 | $this->init(); |
|
66 | ||
67 | // Build command |
|
68 | $command = $this->pathPHP.' '.$this->composerFile.' require '.$packageName; |
|
69 | $command .= ' --prefer-dist --no-progress --no-suggest --no-scripts --ignore-platform-reqs --update-with-dependencies --profile --no-ansi --no-interaction -d '; |
|
70 | $command .= $this->workingDir.' 2>&1'; |
|
71 | log_info($command); |
|
72 | $this->runCommand($command); |
|
73 | } |
|
74 | ||
75 | /** |
|
76 | * This function to remove a plugin by composer remove |
|
@@ 82-95 (lines=14) @@ | ||
79 | * |
|
80 | * @throws PluginException |
|
81 | */ |
|
82 | public function execRemove($packageName, $output = null) |
|
83 | { |
|
84 | set_time_limit(0); |
|
85 | $this->init(); |
|
86 | ||
87 | // Build command |
|
88 | $command = $this->pathPHP.' '.$this->composerFile.' remove '.$packageName; |
|
89 | $command .= ' --no-progress --no-scripts --ignore-platform-reqs --profile --no-ansi --no-interaction -d '; |
|
90 | $command .= $this->workingDir.' 2>&1'; |
|
91 | log_info($command); |
|
92 | ||
93 | // Execute command |
|
94 | $this->runCommand($command); |
|
95 | } |
|
96 | ||
97 | /** |
|
98 | * Run command |