| 1 | <?php |
||
| 11 | class SymfonyProcessWrapper extends AbstractParaunitProcess |
||
| 12 | { |
||
| 13 | /** @var Process */ |
||
| 14 | protected $process; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * {@inheritdoc} |
||
| 18 | */ |
||
| 19 | 15 | public function __construct($commandLine, $uniqueId) |
|
| 20 | { |
||
| 21 | 15 | parent::__construct($commandLine, $uniqueId); |
|
| 22 | 15 | $this->process = new Process($commandLine); |
|
| 23 | 15 | } |
|
| 24 | |||
| 25 | /** |
||
| 26 | * @return bool |
||
| 27 | */ |
||
| 28 | 11 | public function isTerminated() |
|
| 32 | |||
| 33 | /** |
||
| 34 | * |
||
| 35 | */ |
||
| 36 | 11 | public function start() |
|
| 40 | |||
| 41 | /** |
||
| 42 | * {@inheritdoc} |
||
| 43 | */ |
||
| 44 | 3 | public function getOutput() |
|
| 48 | |||
| 49 | /** |
||
| 50 | * {@inheritdoc} |
||
| 51 | */ |
||
| 52 | 11 | public function getExitCode() |
|
| 56 | |||
| 57 | /** |
||
| 58 | * {@inheritdoc} |
||
| 59 | */ |
||
| 60 | public function restart() |
||
| 61 | { |
||
| 62 | $this->reset()->start(); |
||
| 63 | |||
| 64 | return $this; |
||
| 65 | } |
||
| 66 | |||
| 67 | /** |
||
| 68 | * {@inheritdoc} |
||
| 69 | */ |
||
| 70 | 3 | public function reset() |
|
| 79 | |||
| 80 | /** |
||
| 81 | * {@inheritdoc} |
||
| 82 | */ |
||
| 83 | 1 | public function getCommandLine() |
|
| 87 | |||
| 88 | /** |
||
| 89 | * {@inheritdoc} |
||
| 90 | */ |
||
| 91 | public function isRunning() |
||
| 95 | } |
||
| 96 |