public function findPatternFilters($request)
	{
		$results = array();

		list($path, $method) = array($request->path(), $request->getMethod());

		foreach ($this->patternFilters as $pattern => $filters)
		{
			// To find the patterned middlewares for a request, we just need to check these
			// registered patterns against the path info for the current request to this
			// applications, and when it matches we will merge into these middlewares.
			if (str_is($pattern, $path))
			{
				$merge = $this->patternsByMethod($method, $filters);

				$results = array_merge($results, $merge);
			}
		}

		foreach ($this->regexFilters as $pattern => $filters)
		{
			// To find the patterned middlewares for a request, we just need to check these
			// registered patterns against the path info for the current request to this
			// applications, and when it matches we will merge into these middlewares.
			if (preg_match($pattern, $path))
			{
				$merge = $this->patternsByMethod($method, $filters);

				$results = array_merge($results, $merge);
			}
		}

		return $results;
	}
public function findPatternFilters($request)
	{
		$results = array();

		list($path, $method) = array($request->path(), $request->getMethod());

		foreach ($this->patternFilters as $pattern => $filters)
		{
			// To find the patterned middlewares for a request, we just need to check these
			// registered patterns against the path info for the current request to this
			// applications, and when it matches we will merge into these middlewares.
			if (str_is($pattern, $path))
			{
				$merge = $this->patternsByMethod($method, $filters);

				$results = array_merge($results, $merge);
			}
		}

		foreach ($this->regexFilters as $pattern => $filters)
		{
			// To find the patterned middlewares for a request, we just need to check these
			// registered patterns against the path info for the current request to this
			// applications, and when it matches we will merge into these middlewares.
			if (preg_match($pattern, $path))
			{
				$merge = $this->patternsByMethod($method, $filters);

				$results = array_merge($results, $merge);
			}
		}

		return $results;
	}
public function findPatternFilters ( $ request ) { $ results = array ( ) ; list ( $ path , $ method ) = array ( $ request -> path ( ) , $ request -> getMethod ( ) ) ; foreach ( $ this -> patternFilters as $ pattern => $ filters ) { // To find the patterned middlewares for a request, we just need to check these // registered patterns against the path info for the current request to this // applications, and when it matches we will merge into these middlewares. if ( str_is ( $ pattern , $ path ) ) { $ merge = $ this -> patternsByMethod ( $ method , $ filters ) ; $ results = array_merge ( $ results , $ merge ) ; } } foreach ( $ this -> regexFilters as $ pattern => $ filters ) { // To find the patterned middlewares for a request, we just need to check these // registered patterns against the path info for the current request to this // applications, and when it matches we will merge into these middlewares. if ( preg_match ( $ pattern , $ path ) ) { $ merge = $ this -> patternsByMethod ( $ method , $ filters ) ; $ results = array_merge ( $ results , $ merge ) ; } } return $ results ; }
Find the patterned filters matching a request.

@param  \Fly\Http\Request  $request
@return array
Find the patterned filters matching a request .