Skip to content

Commit

Permalink
Updated composer to use database v0.1.4 and minimal v0.1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
judus committed Mar 31, 2018
1 parent f137ca3 commit 38038a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 [
Expand Down Expand Up @@ -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';
});

Expand All @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 38038a8

Please sign in to comment.