mirror of
https://github.com/predis/predis.git
synced 2026-08-31 12:43:31 +00:00
Actually implement preprocessor removal from a preprocessor chain.
This commit is contained in:
@@ -16,7 +16,10 @@ class PreprocessorChain implements ICommandPreprocessorChain, \ArrayAccess {
|
||||
}
|
||||
|
||||
public function remove(ICommandPreprocessor $preprocessor) {
|
||||
// TODO: find index of value
|
||||
$index = array_search($preprocessor, $this->_preprocessors, true);
|
||||
if ($index !== false) {
|
||||
unset($this->_preprocessors);
|
||||
}
|
||||
}
|
||||
|
||||
public function process(&$method, &$arguments) {
|
||||
|
||||
Reference in New Issue
Block a user