Back from config['type'] to config['driver'] like Laravel standard.

This commit is contained in:
Maxime Rault 2016-05-04 10:34:59 +02:00
parent f753156019
commit 4dd6e93e82

View File

@ -45,7 +45,7 @@ class DB2ServiceProvider extends ServiceProvider {
{
//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;
}
@ -53,7 +53,7 @@ class DB2ServiceProvider extends ServiceProvider {
//Create a connector
$this->app['db']->extend($conn, function($config)
{
switch ($config['type']) {
switch ($config['driver']) {
case 'odbc':
$connector = new ODBCConnector();
break;