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