From 38038a8156753aa8932241f224f78f57ec8c1553 Mon Sep 17 00:00:00 2001 From: Julien Duseyau Date: Sat, 31 Mar 2018 13:29:25 +0200 Subject: [PATCH] Updated composer to use database v0.1.4 and minimal v0.1.13 --- README.md | 6 +++--- composer.json | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7bebafc..5fdbe16 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Minimal is a MVC web application framework for PHP. ```php App::respond(function () { - PDO::connection(Config::item('space-game-db')); + DB::connections(Config::database()); Router::get('space-game/(:num)/(:num)', function ($characterId, $levelId) { return [ @@ -112,7 +112,7 @@ App::respond(function () { // Test the database connection Router::get('database', function () { - PDO::connection(Config::item('database')); + DB::connections(Config::database()); return 'Successfully connected to database'; }); @@ -137,7 +137,7 @@ App::respond(function () { Router::get('users', function () { // Connect to database - PDO::connection(Config::item('database')); + DB::connections(Config::database()); // Truncate tables Role::instance()->truncate(); diff --git a/composer.json b/composer.json index a36abd9..d11cb04 100644 --- a/composer.json +++ b/composer.json @@ -20,9 +20,9 @@ "minimal/assets": "v0.1.2", "minimal/benchmark": "v0.1.2", "minimal/cli": "v0.1.1", - "minimal/database": "v0.1.3", + "minimal/database": "v0.1.4", "minimal/html": "v0.1.2", - "minimal/minimal": "v0.1.12", + "minimal/minimal": "v0.1.13", "minimal/paths": "v0.1.3", "minimal/presenters": "v0.1.1", "minimal/translation": "v0.1.2",