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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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');
}