<?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 $hoJyG, \Closure $dkWaY) { goto aii53; nRHew: if (file_exists($ucB3J = modstart_admin_path('bootstrap.php'))) { require $ucB3J; } goto kazjT; kazjT: return $dkWaY($hoJyG); goto yg7hf; hbXvx: FieldManager::registerBuiltinFields(); goto ZDzMa; aii53: if (method_exists(CurrentApp::class, 'set')) { CurrentApp::set(CurrentApp::ADMIN); } goto hbXvx; ZDzMa: WidgetManager::registerBuiltinWidgets(); goto nRHew; yg7hf: } }