lithium\action\Controller::__construct()

public method

Constructor.

Parameters

  • array $config

    Available configuration options are:

    • 'request' object|null: Either a request object or null.
    • 'response' array: Options for constructing the response object.
    • 'render' array: Rendering control options.
    • 'classes' array

Returns

void

Source

	public function __construct(array $config = []) {
		$defaults = [
			'request' => null, 'response' => [], 'render' => [], 'classes' => []
		];
		parent::__construct($config + $defaults);
	}