Ouzo\Routing\Router::findRouteRule PHP 메소드

findRouteRule() 개인적인 메소드

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