private findRouteRule ( $path, $requestType ) : |
||
$path | ||
$requestType | ||
return |
private function findRouteRule($path, $requestType)
{
return Arrays::find(Route::getRoutes(), function (RouteRule $rule) use($path, $requestType) {
return $rule->matches($path, $requestType);
});
}