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
mixed
Throws
Cake\Http\Exception\MissingControllerException
invoke() ¶ 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