Load site settings from dotenv and store OAuth credentials

This commit is contained in:
2026-11-23 16:53:29 +08:00
parent 1bb0554608
commit 01ede89dcd
27 changed files with 730 additions and 76 deletions
+3
View File
@@ -6,6 +6,9 @@ declare(strict_types=1);
chdir(__DIR__);
require __DIR__ . '/vendor/autoload.php';
// Read process variables before Webman loads .env in the worker bootstrap.
App\Config\Environment::load();
$sessionPath = __DIR__ . '/runtime/sessions';
if (!is_dir($sessionPath) && !mkdir($sessionPath, 0750, true) && !is_dir($sessionPath)) {
throw new RuntimeException('无法创建会话目录。');