1
0
mirror of https://github.com/flarum/core.git synced 2025-07-18 15:21:16 +02:00

Fix installation

This commit is contained in:
Toby Zerner
2015-10-20 22:07:35 +10:30
parent 067552efe5
commit 22ffb76cb5
3 changed files with 3 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ class DatabaseServiceProvider extends AbstractServiceProvider
$this->app->singleton('flarum.db', function () {
$factory = new ConnectionFactory($this->app);
$connection = $factory->make($this->app->make('flarum.config')['database']);
$connection = $factory->make($this->app->config('database'));
$connection->setEventDispatcher($this->app->make('Illuminate\Contracts\Events\Dispatcher'));
$connection->setFetchMode(PDO::FETCH_CLASS);