On this page
Interface ControllerFactoryInterface
Factory method for building controllers from request/response pairs.
Namespace: Cake\Http
Method Summary
create() public
Create a controller for a given request
invoke() public
Invoke a controller's action and wrapping methods.
Method Detail
create() public
create(Psr\Http\Message\ServerRequestInterface $request): mixed
Create a controller for a given request
Parameters
Psr\Http\Message\ServerRequestInterface$request-
The request to build a controller for.
Returns
mixedThrows
Cake\Http\Exception\MissingControllerExceptioninvoke() public
invoke(mixed $controller): Psr\Http\Message\ResponseInterface
Invoke a controller's action and wrapping methods.
Parameters
mixed$controller-
The controller to invoke.
Returns
Psr\Http\Message\ResponseInterface© 2005–present 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/4.4/interface-Cake.Http.ControllerFactoryInterface.html