<?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($lIzQw) { self::$gates[] = $lIzQw; } public function handle(Request $RDnT0, \Closure $LeO9R) { goto l7z4w; l7z4w: if (method_exists(CurrentApp::class, 'set')) { CurrentApp::set(CurrentApp::OPEN_API); } goto Hahm1; dEtr4: return $LeO9R($RDnT0); goto R2krP; QkPzG: if (file_exists($LxNX5 = modstart_open_api_path('bootstrap.php'))) { require $LxNX5; } goto dEtr4; bcGkN: WidgetManager::registerBuiltinWidgets(); goto QkPzG; o8U9t: FieldManager::registerBuiltinFields(); goto bcGkN; Hahm1: foreach (self::$gates as $V563N) { goto gHOjk; WpNkK: if (Response::isError($gbVzz)) { return $gbVzz; } goto WKhYw; gHOjk: $LmMYX = app($V563N); goto z41qr; z41qr: $gbVzz = $LmMYX->check($RDnT0); goto WpNkK; WKhYw: } goto o8U9t; R2krP: } }