<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\App\OpenApi\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($ac3f3) { self::$gates[] = $ac3f3; } public function handle(Request $MRMCA, \Closure $Vqu7c) { goto cAzR2; OGugg: if (file_exists($PDjtr = modstart_open_api_path('bootstrap.php'))) { require $PDjtr; } goto DzhjR; DzhjR: return $Vqu7c($MRMCA); goto TDEkr; B1Qyc: WidgetManager::registerBuiltinWidgets(); goto OGugg; cAzR2: if (method_exists(CurrentApp::class, 'set')) { CurrentApp::set(CurrentApp::OPEN_API); } goto RGRGX; XMBOf: FieldManager::registerBuiltinFields(); goto B1Qyc; RGRGX: foreach (self::$gates as $El_MH) { goto sB1OE; xeGH2: if (Response::isError($JOw_A)) { return $JOw_A; } goto ZScPJ; u8ixN: $JOw_A = $v16VC->check($MRMCA); goto xeGH2; sB1OE: $v16VC = app($El_MH); goto u8ixN; ZScPJ: } goto XMBOf; TDEkr: } }