aboutsummaryrefslogtreecommitdiff
path: root/app/class/modeldb.php
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2019-11-04 23:31:31 +0100
committern-peugnet <n.peugnet@free.fr>2019-11-05 19:06:40 +0100
commite802d5204b96d645ec3d40b81b4a8bdc6e0ee675 (patch)
tree8e6db5e36ad8f247b442583e1e9e5da2934f4b52 /app/class/modeldb.php
parentf1f63f556c41c99d45cd610186b0982383eff375 (diff)
downloadwcms-e802d5204b96d645ec3d40b81b4a8bdc6e0ee675.tar.gz
wcms-e802d5204b96d645ec3d40b81b4a8bdc6e0ee675.zip
refactor: switch to psr-4 autoloading
Diffstat (limited to 'app/class/modeldb.php')
-rw-r--r--app/class/modeldb.php37
1 files changed, 0 insertions, 37 deletions
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 @@
-<?php
-class Modeldb extends Model
-{
- protected $database;
- /** @var \WFlywheel\Repository */
- protected $repo;
-
-
- public function __construct()
- {
- $this->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();
- }
-
-
-
-
-
-}