Настройки приложения правятся из панели поверх .env
Реестр настроек живёт в коде (config/settings.php для своих), в базе только значения. Сброс убирает значение из базы — и снова работает .env.
This commit is contained in:
1 parent
974a3409d5
commit
387f79851b
13 files changed
+858
-2
No files matched your search
@@ -18,6 +18,7 @@ use Rsgrinko\Proton\Support\Config;
|
||||
use Rsgrinko\Proton\Support\Logger;
|
||||
use Rsgrinko\Proton\Support\ProtonException;
|
||||
use Rsgrinko\Proton\Support\RequestId;
|
||||
use Rsgrinko\Proton\Support\Settings;
|
||||
use Rsgrinko\Proton\Support\ValidationException;
|
||||
use Rsgrinko\Proton\View\View;
|
||||
use Throwable;
|
||||
@@ -45,6 +46,9 @@ final class Kernel
|
||||
// Сквозная цепочка: клиент прислал свою или заводим новую
|
||||
RequestId::set($request->header(RequestId::HEADER));
|
||||
|
||||
// Значения из панели ложатся поверх .env до того, как их кто-то прочитает
|
||||
Settings::apply();
|
||||
|
||||
try {
|
||||
return $this->finish($this->router()->dispatch($request));
|
||||
} catch (RecordNotFound $e) {
|
||||
|
||||
Reference in new issue
Block a user