|
@@ -32,14 +32,14 @@ |
|
|
block discarded – undo |
|
32
|
32
|
// The connection factory is used to create the actual connection instances on |
|
33
|
33
|
// the database. We will inject the factory into the manager so that it may |
|
34
|
34
|
// make the connections while they are actually needed and not of before. |
|
35
|
|
- $this->app->singleton('db.factory', function ($app) { |
|
|
35
|
+ $this->app->singleton('db.factory', function($app) { |
|
36
|
36
|
return new ConnectionFactory($app); |
|
37
|
37
|
}); |
|
38
|
38
|
|
|
39
|
39
|
// The database manager is used to resolve various connections, since multiple |
|
40
|
40
|
// connections might be managed. It also implements the connection resolver |
|
41
|
41
|
// interface which may be used by other components requiring connections. |
|
42
|
|
- $this->app->singleton('db', function ($app) { |
|
|
42
|
+ $this->app->singleton('db', function($app) { |
|
43
|
43
|
return new DatabaseManager($app, $app['db.factory']); |
|
44
|
44
|
}); |
|
45
|
45
|
|
Please login to merge, or discard this patch.