\LiftKit\Router\Route\HttpController

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.

Summary

Methods
Properties
Constants
isValid()
execute()
__construct()
No public properties found
No constants found
No protected methods found
$baseUri
N/A
No private methods found
No private properties found
N/A

Properties

$baseUri

$baseUri : string

Base URI to attach route to

Type

string

Methods

isValid()

isValid(\LiftKit\Request\Request  $request) : boolean

Returns whether the route matches the supplied request

Parameters

\LiftKit\Request\Request $request

Returns

boolean

__construct()

__construct(callable  $baseUri, \LiftKit\Controller\Controller  $controller) 

Constructor

Parameters

callable $baseUri

Base URI to attach the route to

\LiftKit\Controller\Controller $controller

Controller to dispatch if route matches