OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)

This commit is contained in:
wangruiguo
2026-09-03 18:49:20 +08:00
commit d647428529
3501 changed files with 1988906 additions and 0 deletions

20
.phpstan/bootstrap.php Normal file
View File

@@ -0,0 +1,20 @@
<?php
use Leantime\Core\Http\HttpKernel;
define('RESTRICTED', true);
define('ROOT', __DIR__);
define('APP_ROOT', dirname(__DIR__, 1));
define('LEAN_CLI', false);
require __DIR__.'/../vendor/autoload.php';
$app = require_once APP_ROOT . '/bootstrap/app.php';
$app->make(\Leantime\Core\Console\ConsoleKernel::class)->bootstrap();
// Register Leantime's CarbonImmutable date/time macros into Carbon's macro registry so
// Carbon's official PHPStan MacroExtension (vendor/nesbot/carbon/extension.neon) can resolve
// them (formatDateForUser, setToDbTimezone, ...). At runtime these are registered by the
// Localization middleware; PHPStan never runs that middleware, so register them here.
\Carbon\CarbonImmutable::mixin(new \Leantime\Core\Support\CarbonMacros);