mirror of
https://github.com/predis/predis.git
synced 2026-10-06 20:09:25 +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:
@@ -117,8 +117,13 @@ class PhpiredisSocketConnectionTest extends PredisConnectionTestCase
|
||||
$connection = new PhpiredisSocketConnection($parameters);
|
||||
|
||||
if ($initialize) {
|
||||
$connection->pushInitCommand($profile->createCommand('select', array($parameters->database)));
|
||||
$connection->pushInitCommand($profile->createCommand('flushdb'));
|
||||
$connection->addConnectCommand(
|
||||
$profile->createCommand('select', array($parameters->database))
|
||||
);
|
||||
|
||||
$connection->addConnectCommand(
|
||||
$profile->createCommand('flushdb')
|
||||
);
|
||||
}
|
||||
|
||||
return $connection;
|
||||
|
||||
Reference in New Issue
Block a user