PHP 클래스 Webiny\Component\Bootstrap\Router

Initializes the Router and routes the requests to Dispatcher.
상속: use trait Webiny\Component\StdLib\SingletonTrait, use trait Webiny\Component\StdLib\StdObjectTrait, use trait Webiny\Component\Http\HttpTrait, use trait Webiny\Component\Router\RouterTrait
파일 보기 프로젝트 열기: Webiny/Framework 1 사용 예제들

공개 메소드들

메소드 설명
initializeRouter ( string $url = null ) : Dispatcher This is the request entry point, once the Bootstrap has been initialized.
mvcRouter ( string $request ) : Dispatcher This is the optional router that routes the MVC requests.

비공개 메소드들

메소드 설명
dispatchCustom ( string $className, string $action, array $params ) : Dispatcher In case of a custom route, we must use the custom dispatcher.
dispatchMvc ( string $module, string $controller, string $action, array $params ) : Dispatcher Issues the callback using the MVC dispatcher.

메소드 상세

initializeRouter() 공개 메소드

The method initializes router and tries to call the callback assigned to the current url. Method is call automatically from the Bootstrap class.
public initializeRouter ( string $url = null ) : Dispatcher
$url string Url to route. If not set, the current url is used.
리턴 Dispatcher

mvcRouter() 공개 메소드

This is the optional router that routes the MVC requests.
public mvcRouter ( string $request ) : Dispatcher
$request string Current url path.
리턴 Dispatcher