-
Notifications
You must be signed in to change notification settings - Fork 0
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
HTTP Methods specific annotations #2
Comments
i mean its not the symphony way: https://symfony.com/doc/current/routing.html but it sure looks cool. |
In #[Route(httpMethods: ['POST'])] |
We allow both array and string https://github.com/wbsply/route-annotation/blob/main/Classes/Annotations/Route.php#L16 |
Like this (no changes, does by default) |
no but we can also tell which values are allowed ;) see what was done in neos/flow-development-collection#2961 (or maybe even phpdoc is now far enough to be able to tell this the ide?) |
No strong opinion here, but in general it would be nice to allow more than one method. |
@lorenzulrich Not relevant to the original goal of this "issue" :) And you can already use a array of HTTP methods |
I think beeing as close to the routing configuration as sensible is a good idea. So for me #[Flow\Route(httpMethods:[“get”]…)] |
How about we introduce HTTP specific Route annotation, making it a bit more simple
Today
Tomorrow
The text was updated successfully, but these errors were encountered: