]> source.dussan.org Git - nextcloud-server.git/commit
Deprecate the server container getters 21873/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Thu, 16 Jul 2020 16:59:56 +0000 (18:59 +0200)
committerChristoph Wurst <christoph@winzerhof-wurst.at>
Thu, 16 Jul 2020 16:59:56 +0000 (18:59 +0200)
commitefd2835b2308c6b82e0f09fa70a6d952a9427db9
treeb532ac4217151af2828f743e0080f06a1e7d8c3c
parent684a7200ac1001284a0901eb00e3773f7a1233b5
Deprecate the server container getters

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>
lib/private/Server.php
lib/public/IServerContainer.php