class Route extends Router (View source)

Properties

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

Methods

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

Get params from routes using regex

from Router
static void
set(string|array $method, string $path, string|Closure|null $action)

Register or remove a action from controller for a route

static array|int
get()

Get action controller from current route

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

static void set(string|array $method, string $path, string|Closure|null $action)

Register or remove a action from controller for a route

Parameters

string|array $method
string $path
string|Closure|null $action

Return Value

void

static array|int get()

Get action controller from current route

Return Value

array|int