mirror of
https://github.com/dg/dibi.git
synced 2025-08-06 06:07:39 +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.
|
* Change active connection.
|
||||||
* @param string connection registy name
|
* @param string connection registy name
|
||||||
|
Reference in New Issue
Block a user