lithium\data\Source::__construct()
Constructor.
Parameters
-
array
$config
Available options are:
'autoConnect'
boolean: Iftrue
, a connection is made on initialization. Defaults totrue
.
Returns
voidSource
public function __construct(array $config = []) {
$defaults = ['autoConnect' => true];
$this->_autoConfig($config + $defaults, $this->_autoConfig);
$this->_autoInit($config);
}