Actually implement preprocessor removal from a preprocessor chain.

This commit is contained in:
Daniele Alessandri
2011-04-05 13:07:11 +02:00
parent 1ee7926673
commit ae96b0f39f
@@ -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) {