Group
class Group extends Router (View source)
Constants
BOTH |
Access with HTTP and HTTPS (default) |
SECURE |
Access only in HTTPS |
NONSECURE |
Access only without HTTPS |
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
void
bool
checkSecurity()
Method is used for check if HTTPS or HTTP or both
bool
checkDomain()
Method is used for check domain and return arguments if using regex
bool
checkPath()
Method is used for check path
Details
static protected bool
find(string $route, string $path, array $matches)
Get params from routes using regex
at line 121
void
then(Closure $callback)
Define callback for group, this callback is executed if the request meets the group settings
at line 149
protected bool
checkSecurity()
Method is used for check if HTTPS or HTTP or both
at line 166
protected bool
checkDomain()
Method is used for check domain and return arguments if using regex
at line 204
protected bool
checkPath()
Method is used for check path