Total Complexity | 4 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class SchemaHandler extends ScriptHandler |
||
12 | { |
||
13 | /** |
||
14 | * Logs schema create |
||
15 | * |
||
16 | * @param Event $event |
||
17 | */ |
||
18 | public static function logsSchemaCreate(Event $event) |
||
19 | { |
||
20 | $options = static::getOptions($event); |
||
21 | $consoleDir = static::getConsoleDir($event, 'create logs schema'); |
||
22 | |||
23 | if (null === $consoleDir) { |
||
24 | return; |
||
25 | } |
||
26 | |||
27 | static::executeCommand($event, $consoleDir, 'norsys:logs:schema-create --force', $options['process-timeout']); |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * Logs schema create |
||
32 | * |
||
33 | * @param Event $event |
||
34 | */ |
||
35 | public static function logsSchemaUpdate(Event $event) |
||
45 | } |
||
46 | } |
||
47 |