Conditions | 3 |
Paths | 3 |
Total Lines | 21 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
32 | protected function doExecute() |
||
33 | { |
||
34 | |||
35 | $action = $this->input->getArgument('action'); |
||
36 | |||
37 | if($action === 'reload') |
||
38 | { |
||
39 | |||
40 | if ($this->app["config"]["webserver"]["engine"] == 'nginx') { |
||
41 | $this->processProvider->executeSudoCommand("service nginx reload"); |
||
42 | } else { |
||
43 | $this->processProvider->executeSudoCommand("service apache2 reload"); |
||
44 | } |
||
45 | |||
46 | } |
||
47 | else |
||
48 | { |
||
49 | $this->dialogProvider->logError("Webserver action '$action' not implemented", true); |
||
50 | } |
||
51 | |||
52 | } |
||
53 | } |
||
54 |