Skip to content
New issue

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

Method to get declared routes? #330

Open
zkwbbr opened this issue Feb 7, 2023 · 1 comment
Open

Method to get declared routes? #330

zkwbbr opened this issue Feb 7, 2023 · 1 comment
Assignees
Labels

Comments

@zkwbbr
Copy link

zkwbbr commented Feb 7, 2023

Is there a away to get all declared routes in the current version (or planned in the next)?

For example, something like this?

$router->get('/foo', Foo::class);
$router->get('/bar', Bar::class);

$result = $router->getRoutes(); // an array of the above (/foo and /bar)
@philipobenito philipobenito self-assigned this Nov 9, 2024
@philipobenito
Copy link
Member

I'm just getting a 6.0 release out to drop unsupported PHP versions and fix some issues. I've assigned this to the 6.1 release that will follow it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants