Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public function command($command=null) |
||
16 | { |
||
17 | $process = new ProcessHandler($command,root.''); |
||
|
|||
18 | $process->run(); |
||
19 | |||
20 | // executes after the command finishes |
||
21 | if (!$process->isSuccessful()) { |
||
22 | throw new ProcessFailedException($process); |
||
23 | } |
||
24 | |||
25 | echo $process->getOutput(); |
||
26 | } |
||
27 | } |