| @@ 315-324 (lines=10) @@ | ||
| 312 | /** |
|
| 313 | * |
|
| 314 | */ |
|
| 315 | protected function stop() |
|
| 316 | { |
|
| 317 | if ($this->background && isset($this->process) && $this->process->isRunning()) { |
|
| 318 | $this->process->stop(); |
|
| 319 | $this->printTaskInfo( |
|
| 320 | "Stopped {command}", |
|
| 321 | ['command' => $this->getCommand()] |
|
| 322 | ); |
|
| 323 | } |
|
| 324 | } |
|
| 325 | ||
| 326 | /** |
|
| 327 | * @param array $context |
|
| @@ 177-183 (lines=7) @@ | ||
| 174 | $this->stop(); |
|
| 175 | } |
|
| 176 | ||
| 177 | protected function stop() |
|
| 178 | { |
|
| 179 | if ($this->background && $this->process->isRunning()) { |
|
| 180 | $this->process->stop(); |
|
| 181 | $this->printTaskInfo("Stopped {command}", ['command' => $this->getCommand()]); |
|
| 182 | } |
|
| 183 | } |
|
| 184 | ||
| 185 | /** |
|
| 186 | * @param array $context |
|