PHP Class Xpressengine\Routing\AccessMiddleware

Instance 로 연결된 Instance Route 에 접근하는 경우에 접근 권한이 있는지 확인한다. AccessMiddleware 는 route::instance 로 등록된 경우를 위해서 middleware 역활을 수행한다 route::instance 로 등록된 경우에는 instance route - menu 로직을 수행하므로 관련 instance route 와 menu 의 정보를 취합하여 Access 권한을 확인한다.
Author: XE Team (developers) ([email protected])
显示文件 Open project: xpressengine/xpressengine

Protected Properties

Property Type Description
$app Illuminate\Contracts\Foundation\Application
$gate Illuminate\Contracts\Auth\Access\Gate

Public Methods

Method Description
__construct ( Illuminate\Contracts\Foundation\Application $app, Illuminate\Contracts\Auth\Access\Gate $gate ) 생성자이며, Application 을 주입받는다.
handle ( Illuminate\Http\Request $request, Closure $next ) : mixed

Protected Methods

Method Description
checkPermission ( ) : void checkPermission
getMenuItem ( ) : MenuItem getMenuItem

Method Details

__construct() public method

생성자이며, Application 을 주입받는다.
public __construct ( Illuminate\Contracts\Foundation\Application $app, Illuminate\Contracts\Auth\Access\Gate $gate )
$app Illuminate\Contracts\Foundation\Application Application
$gate Illuminate\Contracts\Auth\Access\Gate GateContract

checkPermission() protected method

checkPermission
protected checkPermission ( ) : void
return void

getMenuItem() protected method

getMenuItem
protected getMenuItem ( ) : MenuItem
return Xpressengine\Menu\Models\MenuItem

handle() public method

public handle ( Illuminate\Http\Request $request, Closure $next ) : mixed
$request Illuminate\Http\Request 현재 처리중인 Request
$next Closure next middleware
return mixed

Property Details

$app protected_oe property

protected Application,Illuminate\Contracts\Foundation $app
return Illuminate\Contracts\Foundation\Application

$gate protected_oe property

protected Gate,Illuminate\Contracts\Auth\Access $gate
return Illuminate\Contracts\Auth\Access\Gate