Back from config['type'] to config['driver'] like Laravel standard.
This commit is contained in:
parent
f753156019
commit
4dd6e93e82
@ -45,7 +45,7 @@ class DB2ServiceProvider extends ServiceProvider {
|
|||||||
{
|
{
|
||||||
|
|
||||||
//Only use configurations that feature a "odbc" or "ibm" driver
|
//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;
|
continue;
|
||||||
}
|
}
|
||||||
@ -53,7 +53,7 @@ class DB2ServiceProvider extends ServiceProvider {
|
|||||||
//Create a connector
|
//Create a connector
|
||||||
$this->app['db']->extend($conn, function($config)
|
$this->app['db']->extend($conn, function($config)
|
||||||
{
|
{
|
||||||
switch ($config['type']) {
|
switch ($config['driver']) {
|
||||||
case 'odbc':
|
case 'odbc':
|
||||||
$connector = new ODBCConnector();
|
$connector = new ODBCConnector();
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user