<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\App\Web\Middleware; use Illuminate\Http\Request; use ModStart\App\Core\AccessGate; use ModStart\App\Core\CurrentApp; use ModStart\Core\Input\Response; use ModStart\Support\Manager\FieldManager; use ModStart\Support\Manager\WidgetManager; class BootstrapMiddleware { private static $gates = array(); public static function addGate($ottBC) { self::$gates[] = $ottBC; } public function handle(Request $fzeTQ, \Closure $ayFRd) { goto xu9j4; KE6FO: return $ayFRd($fzeTQ); goto U7Kz6; gNxvr: foreach (self::$gates as $OV1o4) { goto Z6OsY; aK4ZK: $Z5nZL = $zVV30->check($fzeTQ); goto d_68i; d_68i: if (Response::isError($Z5nZL)) { return $Z5nZL; } goto LGqrt; Z6OsY: $zVV30 = app($OV1o4); goto aK4ZK; LGqrt: } goto wEuYF; GikMG: WidgetManager::registerBuiltinWidgets(); goto LXdg3; LXdg3: if (file_exists($tqFow = modstart_web_path('bootstrap.php'))) { require $tqFow; } goto KE6FO; xu9j4: if (method_exists(CurrentApp::class, 'set')) { CurrentApp::set(CurrentApp::WEB); } goto gNxvr; wEuYF: FieldManager::registerBuiltinFields(); goto GikMG; U7Kz6: } }