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)

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)

Invoke a controller's action and wrapping methods.

Parameters

mixed $controller

The controller to invoke.

Returns

\Psr\Http\Message\ResponseInterface

The response

© 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.1/interface-Cake.Http.ControllerFactoryInterface.html