Dispatcher
, (*1)
The dispatcher library includes classes for dispatching web application routes., (*2)
Installation
Installation via Composer is recommended., (*3)
"require": {
"air-php/dispatcher": "dev-master"
}
Dispatcher
The dispatch() method of the Dispatcher class takes a ResolvedRequest (compatible with Air's ResolvedRequest interface) and dispatches it., (*4)
If present, the dispatcher will call a before() and after() method on the target controller, before and after it calls the controller's action. This provides two useful hooks for code execution in your application's controllers., (*5)