Group
class Group 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
Get params from routes using regex
Method is used for check if HTTPS or HTTP or both
Method is used for check domain and return arguments if using regex
Method is used for check path
Details
in
Router at line 52
static protected bool
find(string $route, string $path, array $matches)
Get params from routes using regex
static Group
create()
Create a new route group
Group
prefixNS(string $namespace)
Define namespace prefix for group
Group
domain(string $domain)
Define domain for group
Group
path(string $path)
Define path for group
Group
secure(bool $secure)
Access only with HTTPS or only HTTP
then(Closure $callback)
Define callback for group, this callback is executed if the request meets the group settings
protected bool
checkSecurity()
Method is used for check if HTTPS or HTTP or both
protected bool
checkDomain()
Method is used for check domain and return arguments if using regex
protected bool
checkPath()
Method is used for check path