air-php / dispatcher
A route dispatching library.
Installs: 2 893
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: >=5.5.0
- air-php/routing: ~0.1
- container-interop/container-interop: ~1.0
- phpunit/phpunit: ~5.0
This package is not auto-updated.
Last update: 2024-12-31 04:07:19 UTC
README
The dispatcher library includes classes for dispatching web application routes.
Installation
Installation via Composer is recommended.
"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.
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.