mirror of
https://github.com/predis/predis.git
synced 2026-08-27 18:51:07 +00:00
Rename Predis\Connection\SingleConnectionInterface::pushInitCommand().
The new name is more explicit as it makes obvious that the commands added with it will be executed upon connect().
This commit is contained in:
@@ -30,7 +30,7 @@ abstract class AbstractConnection implements SingleConnectionInterface
|
||||
private $cachedId;
|
||||
|
||||
protected $parameters;
|
||||
protected $initCmds = array();
|
||||
protected $initCommands = array();
|
||||
|
||||
/**
|
||||
* @param ParametersInterface $parameters Initialization parameters for the connection.
|
||||
@@ -107,9 +107,9 @@ abstract class AbstractConnection implements SingleConnectionInterface
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function pushInitCommand(CommandInterface $command)
|
||||
public function addConnectCommand(CommandInterface $command)
|
||||
{
|
||||
$this->initCmds[] = $command;
|
||||
$this->initCommands[] = $command;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -211,6 +211,6 @@ abstract class AbstractConnection implements SingleConnectionInterface
|
||||
*/
|
||||
public function __sleep()
|
||||
{
|
||||
return array('parameters', 'initCmds');
|
||||
return array('parameters', 'initCommands');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user