src/Routing/Matching/UriValidator.php
/**
	 * Validates that the route's legacy path matches the request.
	 *
	 * @param Route $route
	 * @param Request $request
	 * @return bool
	 */
Validates that the route's legacy path matches the request.
@param Route $route
@param Request $request
@return bool
Validates that the route ' s legacy path matches the request . @param Route $route @param Request $request @return bool
protected function legacy(Route $route, Request $request) {
		$path = $request->path();
		$routePath = $route->fallback();
		$requiredVariables = $this->getRequiredParameters($route);
		if (!is_null($routePath)) {
			if ($path == $routePath) {
				foreach ($requiredVariables as $variableName) {
					if (!$request->query($variableName)) {
						return false;
					}
				}
				return true;
			}
		}
		return false;
	}
protected function legacy ( Route $ route , Request $ request ) { $ path = $ request -> path ( ) ; $ routePath = $ route -> fallback ( ) ; $ requiredVariables = $ this -> getRequiredParameters ( $ route ) ; if ( ! is_null ( $ routePath ) ) { if ( $ path == $ routePath ) { foreach ( $ requiredVariables as $ variableName ) { if ( ! $ request -> query ( $ variableName ) ) { return false ; } } return true ; } } return false ; }
Validates that the route's legacy path matches the request.
Validates that the route ' s legacy path matches the request .