1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-06 00:27:27 +02:00

refactor: extract exception and cache middleware (#4248)

This commit is contained in:
Dag
2024-09-01 21:48:14 +02:00
committed by GitHub
parent 36fd72c87e
commit a6bdc322b0
8 changed files with 99 additions and 56 deletions

View File

@@ -82,6 +82,10 @@ final class Configuration
}
}
if (Debug::isEnabled()) {
self::setConfig('cache', 'type', 'array');
}
if (!is_array(self::getConfig('system', 'enabled_bridges'))) {
self::throwConfigError('system', 'enabled_bridges', 'Is not an array');
}