$baseUri
$baseUri : string
Base URI to attach route to
Abstract HTTp Router
An abstract class to provide utility method to HTTP-oriented routes.
An HTTP route matches a URI to Controller actions.
For example, an HTTP route attached to the base URI /example would route the following requests as follows:
__construct(callable $condition, callable $callback)
Constructor
callable | $condition | Callback that takes a Request as a parameter and returns a boolean indicating whether the Route matches |
callable | $callback | Callback that represents the action to be taken if the route matches, takes a Request as a parameter |
isValid(\LiftKit\Request\Request $request) : boolean
Returns true if request matches route, false if it doesn't
\LiftKit\Request\Request | $request | Request Object |
execute(\LiftKit\Request\Request $request) : \LiftKit\Response\Response
Executes route
\LiftKit\Request\Request | $request | Request Object |