-
Notifications
You must be signed in to change notification settings - Fork 149
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
@resource/@service decorated class as factory **autowired** or not **autowired**? #496
Comments
I will follow the masses here :) If 1. is really bad, then revert. Otherwise introduce option (2.) |
Sorry for the late reply. There is another option. We could introduce a configuration that can globally enable/disable the autowiring feature. People who want it could enable it. |
Adding to the possible options. |
+1 for this ^, below are my comments on the topic from #456 (porting them here since this ticket has been designated as the place for further discussion):
|
Hello all,
Months ago (July 2017), there was a quick discussion about the autowiring factory feature incorporated by me in #456
@joesteeve, @joshuaimmanuel, @leplatrem, I (@wjehenddher)
#456 (comment)
#456 (comment)
#456 (comment)
#456 (comment)
#456 (comment)
#456 (comment)
#456 (comment)
There was no consensus but few alternatives were brought up:
Remove the autowire (basically revert Aligning Cornice with Pyramid ACL pattern by auto-wiring factory to @resource/@service decorated class #456)
Add a view config parameter to opt-in/opt-out autowiring the
@resource
/@service
class as the root factory.Introduce a configuration that can globally enable/disable the autowiring feature. People who want it could enable it.
More Opinions?
More people have chimed in: @grant-humphries
The text was updated successfully, but these errors were encountered: