public function __construct($name = 'phalcon', array $options = [])
{
$defaults = ['password' => null, 'checkVersion' => true, 'traceable' => false, 'triggerError' => true];
if ($name) {
$this->name = $name;
}
$this->options = array_merge($defaults, $options);
$this->enabled = $this->checkPassword() && $this->checkVersion();
register_shutdown_function([$this, 'commit']);
}