lithium\core\AutoConfigurable::__construct()

public method

Default constructor implementation. Initializes class configuration ($_config), and assigns object properties using the _init() method, unless otherwise specified by configuration. See below for details.

Parameters

  • array $config

    The configuration options which will be assigned to the $_config property. This method accepts one configuration option:

    • 'init' boolean: Controls constructor behavior for calling the _init() method. If false, the method is not called, otherwise it is. Defaults to true.

Returns

void

Source

	public function __construct(array $config = []) {
		$this->_autoConfig($config, isset($this->_autoConfig) ? $this->_autoConfig : []);
		$this->_autoInit($config);
	}