Sets a number of properties based on conventions if they are empty. To override the
conventions CakePHP uses you can define properties in your class declaration.
public __construct ( Cake\Network\Request $request = null, |
||
$request | Cake\Network\Request | Request object for this controller. Can be null for testing, but expect that features that use the request parameters will not work. |
$response | Response object for this controller. | |
$name | string | null | Override the name useful in testing when using mocks. |
$eventManager | Cake\Event\EventManager | null | The event manager. Defaults to a new instance. |
$components | Cake\Controller\ComponentRegistry | null | The component registry. Defaults to a new instance. |