Class ControllerFactory
Factory method for building controllers from request/response pairs.
Method Summary
- create() publicCreate a controller for a given request/response
- missingController() protectedThrows an exception when a controller is missing.
Method Detail
create()source public
create( Cake\Network\Request $request , Cake\Network\Response $response )
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()source protected
missingController( Cake\Network\Request $request )
Throws an exception when a controller is missing.
Parameters
-
Cake\Network\Request
$request
- The request.
Throws
Cake\Routing\Exception\MissingControllerException
© 2005–2017 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/3.3/class-Cake.Http.ControllerFactory.html