mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-10 05:54:41 +02:00
refactor: prepare for introduction of token based authentication (#3921)
This commit is contained in:
parent
1262cc982c
commit
06b299e627
10 changed files with 240 additions and 291 deletions
|
@ -1,9 +1,5 @@
|
|||
<?php
|
||||
|
||||
if (version_compare(\PHP_VERSION, '7.4.0') === -1) {
|
||||
exit('RSS-Bridge requires minimum PHP version 7.4.0!');
|
||||
}
|
||||
|
||||
// Path to the formats library
|
||||
const PATH_LIB_FORMATS = __DIR__ . '/../formats/';
|
||||
|
||||
|
@ -51,14 +47,3 @@ spl_autoload_register(function ($className) {
|
|||
}
|
||||
}
|
||||
});
|
||||
|
||||
$errors = Configuration::checkInstallation();
|
||||
if ($errors) {
|
||||
exit('<pre>' . implode("\n", $errors) . '</pre>');
|
||||
}
|
||||
|
||||
$customConfig = [];
|
||||
if (file_exists(__DIR__ . '/../config.ini.php')) {
|
||||
$customConfig = parse_ini_file(__DIR__ . '/../config.ini.php', true, INI_SCANNER_TYPED);
|
||||
}
|
||||
Configuration::loadConfiguration($customConfig, getenv());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue