-
-
Notifications
You must be signed in to change notification settings - Fork 189
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
FEATURE: Add Flow\Route
Attribute/Annotation
#3325
Commits on Mar 15, 2024
-
FEATURE: Add
Flow\Route
Attribute/AnnotationThe `Flow\Route` attribute allows to define routes directly on the affected method. This allows to avoid dealing with Routes.yaml in projects in simple cases where is sometimes is annoying to look up the exact syntax for that. Hint: While this is a very convenient way to add routes in project code it should not be used in libraries/packages that expect to be configured for the outside. In such cases the Routes.yaml is still preferred as it is easier to overwrite. Usage: ```php use Neos\Flow\Mvc\Controller\ActionController; use Neos\Flow\Annotations as Flow; class ExampleController extends ActionController { #[Flow\Route(uriPattern:'my/path', httpMethods: ['get'])] public function someAction(): void { } #[Flow\Route(uriPattern:'my/other/b-path', defaults: ['test' => 'b'])] #[Flow\Route(uriPattern:'my/other/c-path', defaults: ['test' => 'c'])] public function otherAction(): void { } } ``` The package: `WebSupply.RouteAnnotation` by @sorenmalling implemented similar ideas earlier. Resolves: neos#2059
Configuration menu - View commit details
-
Copy full SHA for 5ddd46a - Browse repository at this point
Copy the full SHA 5ddd46aView commit details -
TASK: Refactor to include annotation routes via
provider
and `provi……derOptions` in Settings `Neos.Flow.mvc.routes` ``` Neos: Flow: mvc: routes: Vendor.Example: provider: \Neos\Flow\Mvc\Routing\RouteAnnotationRoutesProvider providerOptions: classNames: - Vendor\Example\Controller\ExampleController ```
Configuration menu - View commit details
-
Copy full SHA for 6877a05 - Browse repository at this point
Copy the full SHA 6877a05View commit details
Commits on Mar 18, 2024
-
DOCS: Document
Flow\Route
annotations and the Settings `Neos.Flow.m……vc.routes._key__.provider | providerOptions`
Configuration menu - View commit details
-
Copy full SHA for e0a8e4a - Browse repository at this point
Copy the full SHA e0a8e4aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e635ca - Browse repository at this point
Copy the full SHA 4e635caView commit details -
Configuration menu - View commit details
-
Copy full SHA for adaf786 - Browse repository at this point
Copy the full SHA adaf786View commit details -
Apply suggestions from code review
Co-authored-by: Bastian Waidelich <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4236241 - Browse repository at this point
Copy the full SHA 4236241View commit details
Commits on Mar 22, 2024
-
Apply suggestions from code review
Co-authored-by: Marc Henry Schultz <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 95917f8 - Browse repository at this point
Copy the full SHA 95917f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d073a8 - Browse repository at this point
Copy the full SHA 8d073a8View commit details -
TASK: Filter out '@Package', '@subpackage', '@controller', '@action' …
…from defaults passed via annotation The @Format option seems to be necessary
Configuration menu - View commit details
-
Copy full SHA for 1a0e2f3 - Browse repository at this point
Copy the full SHA 1a0e2f3View commit details -
TASK: Adjust documentation to use uppercase HTTP-Verbs and explain At…
…tribute arguments
Configuration menu - View commit details
-
Copy full SHA for bceedfc - Browse repository at this point
Copy the full SHA bceedfcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 43aa1c5 - Browse repository at this point
Copy the full SHA 43aa1c5View commit details -
TASK: Move check for '@Package', '@subpackage', '@controller', '@action…
…' in defaults to routes class
Configuration menu - View commit details
-
Copy full SHA for ff5d05d - Browse repository at this point
Copy the full SHA ff5d05dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 360a031 - Browse repository at this point
Copy the full SHA 360a031View commit details
Commits on Mar 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 158d4dc - Browse repository at this point
Copy the full SHA 158d4dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 794ac4a - Browse repository at this point
Copy the full SHA 794ac4aView commit details -
Configuration menu - View commit details
-
Copy full SHA for f8f90df - Browse repository at this point
Copy the full SHA f8f90dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for ee8a812 - Browse repository at this point
Copy the full SHA ee8a812View commit details
Commits on Mar 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 77fcaea - Browse repository at this point
Copy the full SHA 77fcaeaView commit details