<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Admin\Middleware; use Illuminate\Http\Request; use ModStart\App\Core\CurrentApp; use ModStart\Support\Manager\FieldManager; use ModStart\Support\Manager\WidgetManager; class BootstrapMiddleware { public function handle(Request $Mjv3h, \Closure $WExJt) { goto T1uus; FjCv1: FieldManager::registerBuiltinFields(); goto oheq1; Oh9en: if (file_exists($RgmUO = modstart_admin_path('bootstrap.php'))) { require $RgmUO; } goto dXN5_; dXN5_: return $WExJt($Mjv3h); goto M3n4T; T1uus: if (method_exists(CurrentApp::class, 'set')) { CurrentApp::set(CurrentApp::ADMIN); } goto FjCv1; oheq1: WidgetManager::registerBuiltinWidgets(); goto Oh9en; M3n4T: } }