src/mako/http/routing/Router.php
protected function matches(Route $route, string $path): bool
	{
		if(preg_match($route->getRegex(), $path, $parameters) > 0)
		{
			$filtered = [];

			foreach($parameters as $key => $value)
			{
				if(is_string($key))
				{
					$filtered[$key] = $value;
				}
			}

			$route->setParameters($filtered);

			return true;
		}

		return false;
	}
protected function matches(Route $route, string $path): bool
	{
		if(preg_match($route->getRegex(), $path, $parameters) > 0)
		{
			$filtered = [];

			foreach($parameters as $key => $value)
			{
				if(is_string($key))
				{
					$filtered[$key] = $value;
				}
			}

			$route->setParameters($filtered);

			return true;
		}

		return false;
	}
protected function matches ( Route $ route , string $ path ) : bool { if ( preg_match ( $ route -> getRegex ( ) , $ path , $ parameters ) > 0 ) { $ filtered = [ ] ; foreach ( $ parameters as $ key => $ value ) { if ( is_string ( $ key ) ) { $ filtered [ $ key ] = $ value ; } } $ route -> setParameters ( $ filtered ) ; return true ; } return false ; }
Returns TRUE if the route matches the request path and FALSE if not.

@param  \mako\http\routing\Route $route Route
@param  string                   $path  Request path
@return bool
Returns TRUE if the route matches the request path and FALSE if not .