|
@@ -57,6 +57,7 @@ class PhpiredisConnection extends AbstractConnection
|
|
|
public function __construct(ConnectionParametersInterface $parameters)
|
|
|
{
|
|
|
$this->checkExtensions();
|
|
|
+ $this->initializeReader();
|
|
|
|
|
|
parent::__construct($parameters);
|
|
|
}
|
|
@@ -113,14 +114,6 @@ class PhpiredisConnection extends AbstractConnection
|
|
|
$this->reader = $reader;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * {@inheritdoc}
|
|
|
- */
|
|
|
- protected function initializeProtocol(ConnectionParametersInterface $parameters)
|
|
|
- {
|
|
|
- $this->initializeReader();
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Gets the handler used by the protocol reader to handle status replies.
|
|
|
*
|
|
@@ -392,6 +385,7 @@ class PhpiredisConnection extends AbstractConnection
|
|
|
*/
|
|
|
public function __wakeup()
|
|
|
{
|
|
|
- $this->initializeProtocol($this->getParameters());
|
|
|
+ $this->checkExtensions();
|
|
|
+ $this->initializeReader();
|
|
|
}
|
|
|
}
|