phpbb_updates/update.php

22 lines
480 B
PHP
Raw Permalink Normal View History

2022-08-30 14:16:33 +02:00
#!/usr/bin/env php
2018-11-04 15:41:54 +01:00
<?php
2022-03-30 13:54:23 +02:00
use App\UpdateController;
2018-11-04 15:41:54 +01:00
2022-03-30 13:54:23 +02:00
require __DIR__ . '/vendor/autoload.php';
2019-07-29 00:39:27 +02:00
2022-03-30 13:54:23 +02:00
$update = new UpdateController();
$options = $update->parseOpts();
// Help option
if (array_key_exists(key: 'h', array: $options) || array_key_exists(key: 'help', array: $options)) {
$update->printHelp();
exit(0);
}
if (array_key_exists(key: 'd', array: $options) || array_key_exists(key: 'dry-run', array: $options)) {
$update->setDryRun();
}
2022-03-30 13:54:23 +02:00
$update->handleUpdate();