Class ControllerFactory
Factory method for building controllers from request/response pairs.
Method Summary
-
create() public
Create a controller for a given request/response -
getControllerClass() public
Determine the controller class name based on current request and controller param -
missingController() protected
Throws an exception when a controller is missing.
Method Detail
create() public ¶
create( Cake\Http\ServerRequest
$request , Cake\Http\Response
$response )
Create a controller for a given request/response
Parameters
-
Cake\Http\ServerRequest
$request - The request to build a controller for.
-
Cake\Http\Response
$response - The response to use.
Returns
Throws
ReflectionException
getControllerClass() public ¶
getControllerClass( Cake\Http\ServerRequest
$request )
Determine the controller class name based on current request and controller param
Parameters
-
Cake\Http\ServerRequest
$request - The request to build a controller for.
Returns
string|null
missingController() protected ¶
missingController( Cake\Http\ServerRequest
$request )
Throws an exception when a controller is missing.
Parameters
-
Cake\Http\ServerRequest
$request - The request.