src/Routing/Route.php
/**
	 * Checks if the route matches the provided request.
	 *
	 * @param Request $request
	 * @param bool $includingMethod
	 * @return bool
	 */
Checks if the route matches the provided request.
@param Request $request
@param bool $includingMethod
@return bool
Checks if the route matches the provided request . @param Request $request @param bool $includingMethod @return bool
public function matches(Request $request, $includingMethod = true) {
		$this->compile();
		foreach ($this->getValidators() as $validator) {
			if (!$includingMethod && $validator instanceof MethodValidator) {
				continue;
			}
			if (!$validator->matches($this, $request)) {
				return false;
			}
		}
		return true;
	}
public function matches ( Request $ request , $ includingMethod = true ) { $ this -> compile ( ) ; foreach ( $ this -> getValidators ( ) as $ validator ) { if ( ! $ includingMethod && $ validator instanceof MethodValidator ) { continue ; } if ( ! $ validator -> matches ( $ this , $ request ) ) { return false ; } } return true ; }
Checks if the route matches the provided request.
Checks if the route matches the provided request .