Explorar o código

Pass the server profile to a connection initializer callback.

Daniele Alessandri %!s(int64=13) %!d(string=hai) anos
pai
achega
1260c91f63
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/Predis/ConnectionFactory.php

+ 1 - 1
lib/Predis/ConnectionFactory.php

@@ -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 ' .