We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi How to get all the routes defined?
The text was updated successfully, but these errors were encountered:
I don't think you can. The routes passed to RouteCollector::addRoute() are immediately parsed and passed to the dataGenerator inside:
RouteCollector::addRoute()
public function addRoute($httpMethod, $route, $handler) { $route = $this->currentGroupPrefix . $route; $routeDatas = $this->routeParser->parse($route); foreach ((array) $httpMethod as $method) { foreach ($routeDatas as $routeData) { $this->dataGenerator->addRoute($method, $routeData, $handler); } } }
Perhaps if you extend RouteCollector and overwrite addRoute() you can collect the passed routes
RouteCollector
addRoute()
Sorry, something went wrong.
No branches or pull requests
Hi
How to get all the routes defined?
The text was updated successfully, but these errors were encountered: