From e802d5204b96d645ec3d40b81b4a8bdc6e0ee675 Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Mon, 4 Nov 2019 23:31:31 +0100 Subject: refactor: switch to psr-4 autoloading --- app/class/modeldb.php | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 app/class/modeldb.php (limited to 'app/class/modeldb.php') diff --git a/app/class/modeldb.php b/app/class/modeldb.php deleted file mode 100644 index ef1d351..0000000 --- a/app/class/modeldb.php +++ /dev/null @@ -1,37 +0,0 @@ -dbinit(); - } - - - public function dbinit() - { - $this->database = new \JamesMoss\Flywheel\Config(Model::DATABASE_DIR, [ - 'query_class' => "\WFlywheel\Query", - 'formatter' => new \WFlywheel\Formatter\JSON, - ]); - } - - public function storeinit(string $repo) - { - $this->repo = new \WFlywheel\Repository($repo, $this->database); - } - - public function list() - { - return $this->repo->getAllIds(); - } - - - - - -} -- cgit v1.2.3