\LiftKit\Router\Route\HttpControllerFactory

Controller Factory Route

Similar to but instead of attaching an instance of a Controller, a factory callback is provided instead

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(string  $baseUri, callable  $callback) 

Constructor

Parameters

string $baseUri

Base URI to attach controller to

callable $callback

Factory callback to create Controller