| @@ 187-194 (lines=8) @@ | ||
| 184 | * |
|
| 185 | * @return int |
|
| 186 | */ |
|
| 187 | public function call($command, array $arguments = []) |
|
| 188 | { |
|
| 189 | $instance = $this->getApplication()->find($command); |
|
| 190 | ||
| 191 | $arguments['command'] = $command; |
|
| 192 | ||
| 193 | return $instance->run(new ArrayInput($arguments), $this->output); |
|
| 194 | } |
|
| 195 | ||
| 196 | /** |
|
| 197 | * Call another console command silently. |
|
| @@ 204-211 (lines=8) @@ | ||
| 201 | * |
|
| 202 | * @return int |
|
| 203 | */ |
|
| 204 | public function callSilent($command, array $arguments = []) |
|
| 205 | { |
|
| 206 | $instance = $this->getApplication()->find($command); |
|
| 207 | ||
| 208 | $arguments['command'] = $command; |
|
| 209 | ||
| 210 | return $instance->run(new ArrayInput($arguments), new NullOutput()); |
|
| 211 | } |
|
| 212 | ||
| 213 | /** |
|
| 214 | * Get the value of a command argument. |
|