Pass the server profile to a connection initializer callback.

This commit is contained in:
Daniele Alessandri
2011-11-29 17:17:08 +01:00
parent 728afe7fcb
commit 1260c91f63
+1 -1
View File
@@ -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 ' .