TokenExtractor/ChainTokenExtractor.php
public function removeExtractor(\Closure $filter)
    {
        $filtered = array_filter($this->map, $filter);

        if (!$extractorToUnmap = current($filtered)) {
            return false;
        }

        $key = array_search($extractorToUnmap, $this->map);
        unset($this->map[$key]);

        return true;
    }
public function removeExtractor(\Closure $filter)
    {
        $filtered = array_filter($this->map, $filter);

        if (!$extractorToUnmap = current($filtered)) {
            return false;
        }

        $key = array_search($extractorToUnmap, $this->map);
        unset($this->map[$key]);

        return true;
    }
public function removeExtractor ( \ Closure $ filter ) { $ filtered = array_filter ( $ this -> map , $ filter ) ; if ( ! $ extractorToUnmap = current ( $ filtered ) ) { return false ; } $ key = array_search ( $ extractorToUnmap , $ this -> map ) ; unset ( $ this -> map [ $ key ] ) ; return true ; }
Removes a token extractor from the map.

@param Closure $filter A function taking an extractor as argument,
used to find the extractor to remove,

@return bool True in case of success, false otherwise
Removes a token extractor from the map .