Pass method names to preprocessors by value.

This commit is contained in:
Daniele Alessandri
2011-04-05 21:34:05 +02:00
parent 1d9b53d443
commit 771a0ee179
3 changed files with 3 additions and 3 deletions
@@ -3,5 +3,5 @@
namespace Predis\Commands\Preprocessors;
interface ICommandPreprocessor {
public function process(&$method, &$arguments);
public function process($method, &$arguments);
}
@@ -169,7 +169,7 @@ class KeyPrefixPreprocessor implements ICommandPreprocessor {
return $this->_prefix;
}
public function process(&$method, &$arguments) {
public function process($method, &$arguments) {
if (isset($this->_strategies[$method])) {
$this->_strategies[$method]($arguments, $this->_prefix);
}
@@ -22,7 +22,7 @@ class PreprocessorChain implements ICommandPreprocessorChain, \ArrayAccess {
}
}
public function process(&$method, &$arguments) {
public function process($method, &$arguments) {
$count = count($this->_preprocessors);
for ($i = 0; $i < $count; $i++) {
$this->_preprocessors[$i]->process($method, $arguments);