Quick
class Quick extends Router (View source)
Constants
BOTH |
Create two routes, one with slash at the end and other without, like: |
SLASH |
Create a route with slash at the end, like: |
NOSLASH |
Create a route without slash at the end, like: |
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
Get params from routes using regex
Create routes based in a \Controller
Define route format, Quick::BOTH
for create routes like /foo/
and /foo
, Quick::SLASH
for create routes like /foo/
and Quick::NOSLASH
for create routes like /foo
Create routes by configurations
Details
static protected bool
find(string $route, string $path, array $matches)
Get params from routes using regex
at line 54
void
__construct(string $name)
Create routes based in a \Controller
at line 117
Quick
canonical(int $slash = Quick::NOSLASH)
Define route format, Quick::BOTH
for create routes like /foo/
and /foo
, Quick::SLASH
for create routes like /foo/
and Quick::NOSLASH
for create routes like /foo
at line 156
void
prepare()
Create routes by configurations