You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we can only configure a route for a Controller via Annotations.
The annotations themselves aren't the problem, but rather that not all options are available/configurable.
Introducing every option as an annotation would be crazy, and borderline unmaintainable.
It would also be annoying if we need to specify a bunch of these annotations for a lot the routes.
I think a good solution would be allow us to specify a map, or a method, and add an annotation that either calls the method, or pulls the config from the map.
It would also be great if we could configure it for the Controller itself, because there are some options that I'd want to configure for all routes, but only a couple of options for a couple of specific routes.
I'd be happy to help out and submit a PR, if you approve of this idea or even have a better one.
One good example is the managed option.
I'm doing a lot of custom request processing, and decided to use controllers, because they allow declaring a context, but the downside is that I can't control the options directly.
I can see someone already opened an issue because of this. #182
The text was updated successfully, but these errors were encountered:
Currently, we can only configure a route for a Controller via Annotations.
The annotations themselves aren't the problem, but rather that not all options are available/configurable.
Introducing every option as an annotation would be crazy, and borderline unmaintainable.
It would also be annoying if we need to specify a bunch of these annotations for a lot the routes.
I think a good solution would be allow us to specify a map, or a method, and add an annotation that either calls the method, or pulls the config from the map.
It would also be great if we could configure it for the Controller itself, because there are some options that I'd want to configure for all routes, but only a couple of options for a couple of specific routes.
I'd be happy to help out and submit a PR, if you approve of this idea or even have a better one.
One good example is the managed option.
I'm doing a lot of custom request processing, and decided to use controllers, because they allow declaring a context, but the downside is that I can't control the options directly.
I can see someone already opened an issue because of this. #182
The text was updated successfully, but these errors were encountered: