function remove($selector, $callbackOrName = true)
    {
        if (array_key_exists($selector, $this->filters)) {
            if ($callbackOrName === true) {
                unset($this->filters[$selector]);
            } else {
                if (! is_object($callbackOrName)) {
                    $filter = $this->filterFactory->createFilter($callbackOrName);
                } else {
                    $filter = $callbackOrName;
                }
                /* @var $filterSet FilterSet */
                $filterSet = $this->filters[$selector];
                $filterSet->remove($filter);
            }
        }
        return $this;
    }
function remove($selector, $callbackOrName = true)
    {
        if (array_key_exists($selector, $this->filters)) {
            if ($callbackOrName === true) {
                unset($this->filters[$selector]);
            } else {
                if (! is_object($callbackOrName)) {
                    $filter = $this->filterFactory->createFilter($callbackOrName);
                } else {
                    $filter = $callbackOrName;
                }
                /* @var $filterSet FilterSet */
                $filterSet = $this->filters[$selector];
                $filterSet->remove($filter);
            }
        }
        return $this;
    }
function remove ( $ selector , $ callbackOrName = true ) { if ( array_key_exists ( $ selector , $ this -> filters ) ) { if ( $ callbackOrName === true ) { unset ( $ this -> filters [ $ selector ] ) ; } else { if ( ! is_object ( $ callbackOrName ) ) { $ filter = $ this -> filterFactory -> createFilter ( $ callbackOrName ) ; } else { $ filter = $ callbackOrName ; } /* @var $filterSet FilterSet */ $ filterSet = $ this -> filters [ $ selector ] ; $ filterSet -> remove ( $ filter ) ; } } return $ this ; }
Remove a filter from the stack

@param string $selector
@param bool|callable|string|TRUE $callbackOrName
@throws \InvalidArgumentException
@return \Sirius\Filtration\Filtrator
Remove a filter from the stack