Refactor the database manager.

This commit is contained in:
Taylor Otwell 2011-08-08 10:23:13 -05:00
parent e78a5b0ad3
commit 64fb09a870
1 changed files with 1 additions and 4 deletions

View File

@ -22,10 +22,7 @@ class Manager {
*/ */
public static function connection($connection = null) public static function connection($connection = null)
{ {
if (is_null($connection)) if (is_null($connection)) $connection = Config::get('db.default');
{
$connection = Config::get('db.default');
}
if ( ! array_key_exists($connection, static::$connections)) if ( ! array_key_exists($connection, static::$connections))
{ {