Méthode |
Description |
|
__call ( string $method, array $args ) : Router |
Allow shortcut route registration using the called method name as the HTTP method verb |
|
__invoke ( aerys\Request $request, aerys\Response $response ) |
Route a request |
|
boot ( Server $server, Psr\Log\LoggerInterface $logger ) |
|
|
do ( InternalRequest $ireq ) |
Execute router middleware functionality |
|
monitor ( ) : array |
|
|
prefix ( string $prefix ) : self |
Prefix all the (already defined) routes with a given prefix |
|
route ( string $method, string $uri, $actions ) : Router |
Define an application route |
|
setOption ( string $key, mixed $value ) |
Set a router option |
|
update ( Server $server ) : Promise |
React to server state changes |
|
use ( callable | aerys\Middleware | aerys\Bootable | aerys\Monitor $action ) : self |
Import a router or attach a callable, Middleware or Bootable. |
|