From 22ff03969ef96f96998fb54e4821ed040ba680f6 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Fri, 17 Jul 2020 10:17:18 +0200 Subject: [PATCH] Undeprecate IAppContainer and IServerContainer MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit With 4152216bd8cf9d49e6749d26bb8b491dd49b089b these two interfaces got deprecated with the reasoning that we only need the base PSR interface. However, there are cases where in Nextcloud you still want to have a specific container (the one for the app vs the one for the server) when you either have a container injected or query one from a container. With a single interface that would not be possible. So it's probably better if we leave the two interfaces, but only have them extend the PSR interface. IContainer – with the custom methods – shall still be phased out, but the two other sub interfaces can stay for tagging purposes. Tagging means that no methods shall be added. Signed-off-by: Christoph Wurst --- lib/public/AppFramework/IAppContainer.php | 15 +++++++++----- lib/public/IServerContainer.php | 24 ++++++++++------------- 2 files changed, 20 insertions(+), 19 deletions(-) diff --git a/lib/public/AppFramework/IAppContainer.php b/lib/public/AppFramework/IAppContainer.php index 2a3689e7063..f3497a6e0e1 100644 --- a/lib/public/AppFramework/IAppContainer.php +++ b/lib/public/AppFramework/IAppContainer.php @@ -1,4 +1,7 @@