dbinit(); } public function dbinit() { $this->database = new Flywheel\Config(Model::DATABASE_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(); } }