<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\App\Web\Middleware; use ModStart\App\Core\AccessGate; use ModStart\Core\Input\Response; use ModStart\Form\Form; use ModStart\Support\Manager\FieldManager; use Illuminate\Http\Request; use ModStart\Support\Manager\WidgetManager; class BootstrapMiddleware { private static $gates = array(); public static function addGate($c37e9) { self::$gates[] = $c37e9; } public function handle(Request $kn_5b, \Closure $BuCHd) { goto GPmCf; XGB_E: return $BuCHd($kn_5b); goto vd_C9; kmzqD: WidgetManager::registerBuiltinWidgets(); goto xrj_U; epnDN: FieldManager::registerBuiltinFields(); goto kmzqD; xrj_U: if (file_exists($M99pY = modstart_web_path('bootstrap.php'))) { require $M99pY; } goto XGB_E; GPmCf: foreach (self::$gates as $Nrp0b) { goto C3Sjp; aDlEt: $uotzZ = $SfR2P->check($kn_5b); goto RjkAK; RjkAK: if (Response::isError($uotzZ)) { return $uotzZ; } goto lCYMH; C3Sjp: $SfR2P = app($Nrp0b); goto aDlEt; lCYMH: } goto epnDN; vd_C9: } }