Skip to content

Commit

Permalink
Back from config['type'] to config['driver'] like Laravel standard.
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Rault committed May 4, 2016
1 parent f753156 commit 4dd6e93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DB2ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ public function register()
{

//Only use configurations that feature a "odbc" or "ibm" driver
if(!isset($config['type']) || !in_array($config['type'], ['odbc', 'ibm']) )
if(!isset($config['driver']) || !in_array($config['driver'], ['odbc', 'ibm']) )
{
continue;
}

//Create a connector
$this->app['db']->extend($conn, function($config)
{
switch ($config['type']) {
switch ($config['driver']) {
case 'odbc':
$connector = new ODBCConnector();
break;
Expand Down

0 comments on commit 4dd6e93

Please sign in to comment.