dbinit(); } public function dbinit($dir = Model::DATABASE_DIR) { $this->database = new Flywheel\Config($dir , [ 'query_class' => Query::class, 'formatter' => new JSON, ]); } public function storeinit(string $repo) { $this->repo = new Repository($repo, $this->database); } public function list() { return $this->repo->getAllIds(); } }