$baseUri
$baseUri : string
Base URI to attach route to
Controller Route
Attaches a Controller to a base URI. If the request URI matches the base URI, the route will search for a method on the Controller that matches the next segmentof the URI.
isValid(\LiftKit\Request\Request $request) : boolean
Returns whether the route matches the supplied request
\LiftKit\Request\Request | $request |
execute(\LiftKit\Request\Request $request) : \LiftKit\Response\Response
Executes callback with supplied Request
\LiftKit\Request\Request | $request |
__construct(callable $baseUri, \LiftKit\Controller\Controller $controller)
Constructor
callable | $baseUri | Base URI to attach the route to |
\LiftKit\Controller\Controller | $controller | Controller to dispatch if route matches |