Class ControllerFactory
Factory method for building controllers from request/response pairs.
Namespace: Cake\Http
Method Summary
-
create() public
Create a controller for a given request/response
-
missingController() protected
Throws an exception when a controller is missing.
Method Detail
create() ¶ public
create(Cake\Network\Request $request, Cake\Network\Response $response): Cake\Controller\Controller
Create a controller for a given request/response
Parameters
-
Cake\Network\Request
$request The request to build a controller for.
-
Cake\Network\Response
$response The response to use.
Returns
Cake\Controller\Controller
missingController() ¶ protected
missingController(Cake\Network\Request $request): void
Throws an exception when a controller is missing.
Parameters
-
Cake\Network\Request
$request The request.
Returns
void
Throws
Cake\Routing\Exception\MissingControllerException