SymfonyRouter
class SymfonyRouter (View source)
Class SymfonyRouter
Symfony Router implementation for Poweradmin with module support. Uses modern routing patterns with clean URLs and proper REST endpoints. Loads routes from YAML configuration and enabled modules.
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()
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.