fixed bug in database manager.
This commit is contained in:
parent
220c359eee
commit
c3f5abc37a
|
@ -45,9 +45,9 @@ public function connection($connection = null)
|
|||
// This provides the developer the maximum amount of freedom in establishing their
|
||||
// database connections, and allows the framework to remain agonstic to ugly database
|
||||
// specific PDO connection details. Less code. Less bugs.
|
||||
$pdo = call_user_func($this->config['connectors'][$connection]);
|
||||
$pdo = call_user_func($this->config['connectors'][$connection], $this->config);
|
||||
|
||||
$this->connections[$connection] = new Connection($pdo, $this->config));
|
||||
$this->connections[$connection] = new Connection($pdo, $this->config);
|
||||
}
|
||||
|
||||
return $this->connections[$connection];
|
||||
|
|
Loading…
Reference in New Issue