Router
class Router implements RouterInterface (View source)
Properties
protected RouteActionFactoryInterface | $actionFactory | ||
protected RouteCollection | $routes |
Methods
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Get a route given its path.
No description
No description
No description
No description
No description
No description
Details
__construct(RouteCollection $routes, RouteActionFactoryInterface $actionFactory)
No description
buildGroup()
No description
RouteBuilder
get(string $path, string $action)
No description
RouteBuilder
head(string $path, string $action)
No description
RouteBuilder
post(string $path, string $action)
No description
RouteBuilder
put(string $path, string $action)
No description
RouteBuilder
patch(string $path, string $action)
No description
RouteBuilder
delete(string $path, string $action)
No description
RouteBuilder
options(string $path, string $action)
No description
RouteBuilder
all(string $path, string $action)
No description
RouteActionInterface
resolveAction(Route $route)
No description
RouteCollection[]
getRoutes()
No description
RouteActionFactoryInterface
getActionFactory()
No description
addRoute(Route $route)
No description
Route
getRouteByPath(string $path, RequestContext $context, array $routeAttributes = [])
Get a route given its path.
MatchedRoute
matchRoute(Request $request)
No description
loadRouteList(RouteListInterface $list)
No description
register($path, $callback, $handle = null, array $requirements = [], array $options = [], $host = '', $schemes = [], $methods = [], $condition = null)
No description
registerMultiple(array $routes)
No description
string
route($data)
deprecated
deprecated
Returns a route string based on data. DO NOT USE THIS.
setThemeByRoute($path, $theme = null, $wrapper = FILENAME_THEMES_VIEW)
deprecated
deprecated
No description
private
normalizePath($path)
No description
private
createRouteBuilder($path, $action, $methods)
No description
private RouteCollection
filterRouteCollectionForPath(RouteCollection $routes, string $path)
No description