function __construct(\Abode\ConfigLibrary $config) { $this->database = $config->get("data.dbName"); $this->config = $config; }
function __construct(\Abode\ConfigLibrary $config, \DI\Container $container) { $this->config = array("userCol" => $config->get('auth.userCol', "username"), "idCol" => $config->get('auth.idCol', "id"), "auth_key" => $config->get('auth.auth_key', "user_id")); $this->passwordHasher = new \Hautelook\Phpass\PasswordHash(8, false); $this->container = $container; }
function __construct(\Abode\ConfigLibrary $config) { $this->db_name = $config->get("data.dbName"); }