public function __construct($dsnUrl = null) { parent::__construct($dsnUrl); if ($this->username && $this->password) { if ($this->salt) { $this->users[$this->username] = $this->password; } else { $this->users[$this->username] = Auth::makeHash($this->username, $this->password, ''); } } }
/** * @return string */ protected static function getSettingsClassName() { return Settings::className(); }