1 | <?php |
||
16 | class ScriptHandler |
||
17 | { |
||
18 | /** |
||
19 | * @var string|null|false |
||
20 | */ |
||
21 | private static $php_path = null; |
||
22 | |||
23 | /** |
||
24 | * @param Event $event |
||
25 | */ |
||
26 | public static function updateDatabase(Event $event) |
||
30 | |||
31 | /** |
||
32 | * @param Event $event |
||
33 | * @param string $cmd |
||
34 | * @param int $timeout |
||
35 | */ |
||
36 | private static function executeCommand(Event $event, $cmd, $timeout = 300) |
||
58 | |||
59 | /** |
||
60 | * Get path to php executable |
||
61 | * |
||
62 | * @throws \RuntimeException |
||
63 | * |
||
64 | * @return string |
||
65 | */ |
||
66 | private static function getPhp() |
||
77 | } |
||
78 |