Router
final class Router (View source)
Methods
patchNamed(string $name, string $path, string $handler)
deleteNamed(string $name, string $path, string $handler)
optionsNamed(string $name, string $path, string $handler)
group(string $prefix, callable $builder)
localizedGroup(callable $builder)
configureLocalizedRoutes(string $routeNamePrefix = 'localized.', string|null $routePrefix = null, string $localeParameter = 'locale', array $supportedLocales = [])
void
url(string $name, array $params = [])
string
setControllerNamespace(string $namespace)
void
match(ServerRequestInterface $request)
allowedMethodsForPath(string $path)
array
hasExplicitRouteForPath(HttpMethod|string $method, string $path)
bool
Details
__construct
__construct()
No description
mapNamed
Route
mapNamed(string $name, HttpMethod|string $method, string $path, string $handler)
No description
configureLocalizedRoutes
void
configureLocalizedRoutes(string $routeNamePrefix = 'localized.', string|null $routePrefix = null, string $localeParameter = 'locale', array $supportedLocales = [])
No description
url
string
url(string $name, array $params = [])
No description
setControllerNamespace
void
setControllerNamespace(string $namespace)
No description
allowedMethodsForPath
array
allowedMethodsForPath(string $path)
No description
hasExplicitRouteForPath
bool
hasExplicitRouteForPath(HttpMethod|string $method, string $path)
No description