Skip to content

Conversation

@ChristophWurst
Copy link
Member

Service locators are an anti pattern. These getters just make it more
appealing to do the wrong thing. If you want to locate a service the bad
way, just use the get method on a container – it will do the same in
also one line of code.

Ref #20953

Service locators are an anti pattern. These getters just make it more
appealing to do the wrong thing. If you want to locate a service the bad
way, just use the `get` method on a container – it will do the same in
also one line of code.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
@ChristophWurst ChristophWurst added 3. to review Waiting for reviews technical debt pending documentation This pull request needs an associated documentation update labels Jul 16, 2020
@ChristophWurst ChristophWurst added this to the Nextcloud 20 milestone Jul 16, 2020
@ChristophWurst ChristophWurst self-assigned this Jul 16, 2020
@skjnldsv
Copy link
Member

No version though?

@rullzer rullzer merged commit dfcb49b into master Jul 16, 2020
@rullzer rullzer deleted the techdebt/deprecate-server-container-getters branch July 16, 2020 18:27
@ChristophWurst
Copy link
Member Author

@ChristophWurst ChristophWurst added pending documentation This pull request needs an associated documentation update and removed pending documentation This pull request needs an associated documentation update labels Oct 6, 2020
@ChristophWurst ChristophWurst removed the pending documentation This pull request needs an associated documentation update label Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants