v1.0.0
English

RouteCollection.php

system/Router/RouteCollection.php
1 class 61 methods

class RouteCollection

__construct (FileLocatorInterface $locator, Modules $moduleConfig, Routing $routing) public
loadRoutes (string $routesFile = APPPATH . 'Config/Routes.php') public
discoverRoutes () protected
addPlaceholder ($placeholder, ?string $pattern = null) public
getPlaceholders () public
setDefaultNamespace (string $value) public
setDefaultController (string $value) public
setDefaultMethod (string $value) public
setTranslateURIDashes (bool $value) public
setAutoRoute (bool $value) public
set404Override ($callable = null) public
get404Override () public
setDefaultConstraint (string $placeholder) public
getDefaultController () public
getDefaultMethod () public
getDefaultNamespace () public
shouldTranslateURIDashes () public
shouldAutoRoute () public
getRoutes (?string $verb = null, bool $includeWildcard = true) public
getRoutesOptions (?string $from = null, ?string $verb = null) public
getHTTPVerb () public
setHTTPVerb (string $verb) public
map (array $routes = [], ?array $options = null) public
add (string $from, $to, ?array $options = null) public
addRedirect (string $from, string $to, int $status = 302) public
isRedirect (string $routeKey) public
getRedirectCode (string $routeKey) public
group (string $name, ...$params) public
resource (string $name, ?array $options = null) public
presenter (string $name, ?array $options = null) public
string (array $verbs = [], string $from = '', $to = '', ?array $options = null) public
get (string $from, $to, ?array $options = null) public
post (string $from, $to, ?array $options = null) public
put (string $from, $to, ?array $options = null) public
delete (string $from, $to, ?array $options = null) public
head (string $from, $to, ?array $options = null) public
patch (string $from, $to, ?array $options = null) public
options (string $from, $to, ?array $options = null) public
cli (string $from, $to, ?array $options = null) public
view (string $from, string $view, ?array $options = null) public
environment (string $env, Closure $callback) public
reverseRoute (string $search, ...$params) public
localizeRoute (string $route) protected
isFiltered (string $search, ?string $verb = null) public
getFiltersForRoute (string $search, ?string $verb = null) public
fillRouteParams (string $from, ?array $params = null) protected
buildReverseRoute (string $from, array $params) protected
replaceLocale (string $route, ?string $locale = null) private
create (string $verb, string $from, $to, ?array $options = null) protected
checkHostname ($hostname) private
processArrayCallableSyntax (string $from, array $to) private
getMethodParams (string $from) private
checkSubdomains ($subdomains) private
determineCurrentSubdomain () private
resetRoutes () public
loadRoutesOptions (?string $verb = null) protected
setPrioritize (bool $enabled = true) public
getRegisteredControllers (?string $verb = '*') public
getControllerName ($handler) private
useSupportedLocalesOnly (bool $useOnly) public
shouldUseSupportedLocalesOnly () public
phpDG v1.0.0 RouteCollection.php 662 files 498 classes 763 fn
Generated