protected function parseFilter($filter, array $options)
	{
		$parameters = array();

		$original = $filter;

		if ($filter instanceof Closure)
		{
			$filter = $this->registerClosureFilter($filter);
		}
		elseif ($this->isInstanceFilter($filter))
		{
			$filter = $this->registerInstanceFilter($filter);
		}
		else
		{
			list($filter, $parameters) = Route::parseFilter($filter);
		}

		return compact('original', 'filter', 'parameters', 'options');
	}
protected function parseFilter($filter, array $options)
	{
		$parameters = array();

		$original = $filter;

		if ($filter instanceof Closure)
		{
			$filter = $this->registerClosureFilter($filter);
		}
		elseif ($this->isInstanceFilter($filter))
		{
			$filter = $this->registerInstanceFilter($filter);
		}
		else
		{
			list($filter, $parameters) = Route::parseFilter($filter);
		}

		return compact('original', 'filter', 'parameters', 'options');
	}
protected function parseFilter ( $ filter , array $ options ) { $ parameters = array ( ) ; $ original = $ filter ; if ( $ filter instanceof Closure ) { $ filter = $ this -> registerClosureFilter ( $ filter ) ; } elseif ( $ this -> isInstanceFilter ( $ filter ) ) { $ filter = $ this -> registerInstanceFilter ( $ filter ) ; } else { list ( $ filter , $ parameters ) = Route :: parseFilter ( $ filter ) ; } return compact ( 'original' , 'filter' , 'parameters' , 'options' ) ; }
Parse the given filter and options.

@param  \Closure|string  $name
@param  array  $options
@return array
Parse the given filter and options .