mirror of
https://github.com/dg/dibi.git
synced 2025-08-10 16:14:57 +02:00
- consolidating the aliases for the connection parameters
This commit is contained in:
@@ -69,6 +69,10 @@ class DibiConnection extends DibiObject
|
||||
throw new InvalidArgumentException('Configuration must be array, string or ArrayObject.');
|
||||
}
|
||||
|
||||
self::alias($config, 'username', 'user');
|
||||
self::alias($config, 'password', 'pass');
|
||||
self::alias($config, 'host', 'hostname');
|
||||
|
||||
if (!isset($config['driver'])) {
|
||||
$config['driver'] = dibi::$defaultDriver;
|
||||
}
|
||||
|
Reference in New Issue
Block a user