mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-02 18:14:42 +02:00
fix(arstechnica): plus a few unrelated tweaks (#3829)
This commit is contained in:
parent
0b67544f86
commit
f01729c86f
6 changed files with 18 additions and 17 deletions
|
@ -15,15 +15,7 @@ final class Configuration
|
|||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Verifies the current installation of RSS-Bridge and PHP.
|
||||
*
|
||||
* Returns an error message and aborts execution if the installation does
|
||||
* not satisfy the requirements of RSS-Bridge.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function verifyInstallation()
|
||||
public static function checkInstallation(): array
|
||||
{
|
||||
$errors = [];
|
||||
|
||||
|
@ -57,10 +49,7 @@ final class Configuration
|
|||
if (!extension_loaded('json')) {
|
||||
$errors[] = 'json extension not loaded';
|
||||
}
|
||||
|
||||
if ($errors) {
|
||||
throw new \Exception(sprintf('Configuration error: %s', implode(', ', $errors)));
|
||||
}
|
||||
return $errors;
|
||||
}
|
||||
|
||||
public static function loadConfiguration(array $customConfig = [], array $env = [])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue