mirror of
https://github.com/dg/dibi.git
synced 2025-08-05 21:58:10 +02:00
added dibi::setConnection()
This commit is contained in:
@@ -255,6 +255,18 @@ class dibi
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets connection.
|
||||
* @param DibiConnection
|
||||
* @return DibiConnection
|
||||
*/
|
||||
public static function setConnection(DibiConnection $connection)
|
||||
{
|
||||
return self::$connection = $connection;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Change active connection.
|
||||
* @param string connection registy name
|
||||
|
Reference in New Issue
Block a user