mirror of
https://github.com/predis/predis.git
synced 2026-08-23 21:59:33 +00:00
Change how parameters are handled internally.
This commit is contained in:
@@ -67,13 +67,10 @@ class Client {
|
||||
);
|
||||
}
|
||||
|
||||
$options = $this->_options;
|
||||
$connection = self::newConnectionInternal($parameters);
|
||||
$connection->setProtocolOption('iterable_multibulk', $options->iterable_multibulk);
|
||||
$connection->setProtocolOption('throw_errors', $options->throw_errors);
|
||||
$this->pushInitCommands($connection);
|
||||
|
||||
$callback = $options->on_connection_initialized;
|
||||
$callback = $this->_options->on_connection_initialized;
|
||||
if (isset($callback)) {
|
||||
$callback($this, $connection);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user