mirror of
https://github.com/predis/predis.git
synced 2026-09-12 19:37:05 +00:00
Pass the server profile to a connection initializer callback.
This commit is contained in:
@@ -112,7 +112,7 @@ class ConnectionFactory implements IConnectionFactory
|
||||
return $connection;
|
||||
}
|
||||
|
||||
$connection = call_user_func($initializer, $parameters);
|
||||
$connection = call_user_func($initializer, $parameters, $profile);
|
||||
if (!$connection instanceof IConnectionSingle) {
|
||||
throw new \InvalidArgumentException(
|
||||
'Objects returned by connection initializers must implement ' .
|
||||
|
||||
Reference in New Issue
Block a user