SymfonyRouter
final class SymfonyRouter (View source)
Matches the request against routes.yaml and enabled module routes, then runs the matched controller.
Methods
No description
Match the current request to a route and return controller information.
Process the matched route by instantiating and running the controller.
Generate URL for a named route.
Get route parameters from the matched route.
Get the matched route name.
Check if route was found.
Get the current request object.
Details
__construct(BootContext $context)
No description
ModuleRegistry
getModuleRegistry()
No description
array
match()
Match the current request to a route and return controller information.
void
process()
Process the matched route by instantiating and running the controller.
string
generateUrl(string $routeName, array $parameters = [])
Generate URL for a named route.
array
getRouteParameters()
Get route parameters from the matched route.
string|null
getMatchedRoute()
Get the matched route name.
bool
isRouteFound()
Check if route was found.
Request
getRequest()
Get the current request object.