abstract class Router (View source)

Properties

static protected array $httpRoutes Store normal routes
static protected array $httpParamRoutes Store param routes
static protected string $prefixNS Define namespace prefix to Controllers
static protected string $prefixPath Define path prefix to routes

Methods

static bool
find(string $route, string $path, array $matches)

Get params from routes using regex

Details

static protected bool find(string $route, string $path, array $matches)

Get params from routes using regex

Parameters

string $route
string $path
array $matches

Return Value

bool