PHP 클래스 App\services\Hook

파일 보기 프로젝트 열기: printempw/blessing-skin-server

공개 메소드들

메소드 설명
addMenuItem ( string $category, integer $position, array $menu ) : void Add an item to menu.
addRoute ( Closure $callback ) Add a route. A router instance will be passed to the given callback.

메소드 상세

addMenuItem() 공개 정적인 메소드

Add an item to menu.
public static addMenuItem ( string $category, integer $position, array $menu ) : void
$category string 'user' or 'admin'
$position integer Where to insert the given item, start from 0.
$menu array e.g. [ 'title' => 'Title', # will be translated by translator 'link' => 'user/config', # route link 'icon' => 'fa-book' # font-awesome icon ]
리턴 void

addRoute() 공개 정적인 메소드

Add a route. A router instance will be passed to the given callback.
public static addRoute ( Closure $callback )
$callback Closure