public function __construct($dsn, $user, $password) { $filename = substr($dsn, 7); if ($filename === ':memory:') { throw new ModuleException(__CLASS__, ':memory: database is not supported'); } $this->filename = Configuration::projectDir() . $filename; $this->dsn = 'sqlite:' . $this->filename; parent::__construct($this->dsn, $user, $password); }
public function __construct($dsn, $user, $password) { parent::__construct($dsn, $user, $password); $this->filename = Configuration::projectDir() . substr($this->dsn, 7); $this->dsn = 'sqlite:' . $this->filename; }