Метод |
Описание |
|
__construct ( Orno\Di\ContainerInterface $container = null, Orno\Config\Repository $config = null, FastRoute\RouteParser $parser = null, FastRoute\DataGenerator $generator = null ) |
Constructor |
|
addRoute ( string $method, string $route, string | Closure $handler, integer $strategy = self::REQUEST_RESPONSE_STRATEGY ) : RouteCollection |
Add a route to the collection |
|
delete ( string $route, string | Closure $handler, integer $strategy = self::REQUEST_RESPONSE_STRATEGY ) : RouteCollection |
Add a route that responds to DELETE HTTP method |
|
get ( string $route, string | Closure $handler, integer $strategy = self::REQUEST_RESPONSE_STRATEGY ) : RouteCollection |
Add a route that responds to GET HTTP method |
|
getDispatcher ( ) : Dispatcher |
Builds a dispatcher based on the routes attached to this collection |
|
head ( string $route, string | Closure $handler, integer $strategy = self::REQUEST_RESPONSE_STRATEGY ) : RouteCollection |
Add a route that responds to HEAD HTTP method |
|
options ( string $route, string | Closure $handler, integer $strategy = self::REQUEST_RESPONSE_STRATEGY ) : RouteCollection |
Add a route that responds to OPTIONS HTTP method |
|
patch ( string $route, string | Closure $handler, integer $strategy = self::REQUEST_RESPONSE_STRATEGY ) : RouteCollection |
Add a route that responds to PATCH HTTP method |
|
post ( string $route, string | Closure $handler, integer $strategy = self::REQUEST_RESPONSE_STRATEGY ) : RouteCollection |
Add a route that responds to POST HTTP method |
|
put ( string $route, string | Closure $handler, integer $strategy = self::REQUEST_RESPONSE_STRATEGY ) : RouteCollection |
Add a route that responds to PUT HTTP method |
|