diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-07-17 08:05:07 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-07-17 08:05:07 +0200 |
commit | 9bc6a8437d2ad3e5b8a09531bcc6803255c38636 (patch) | |
tree | 99c415291a8da45b35db39921b95d16174fad115 /lib | |
parent | 2c79083f27c764fb35cc1692e105a02378cbd690 (diff) | |
download | nextcloud-server-9bc6a8437d2ad3e5b8a09531bcc6803255c38636.tar.gz nextcloud-server-9bc6a8437d2ad3e5b8a09531bcc6803255c38636.zip |
Deprecate the query mothod on the server container
The interface method has already been deprecated, but if some code uses
the concrete type instead, the deprecation is not shown (by phpstorm),
so I think it's better to have this method tagged as well.
The "fix" for this deprecation is to simply use `get` instead of
`query`. Right now this will work 100% the same, but the goal is to slim
down the interface and only use what PSR-11 offers.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/ServerContainer.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/ServerContainer.php b/lib/private/ServerContainer.php index eb6bda1e27b..b1bf38265b8 100644 --- a/lib/private/ServerContainer.php +++ b/lib/private/ServerContainer.php @@ -127,6 +127,9 @@ class ServerContainer extends SimpleContainer { return parent::has($id); } + /** + * @deprecated 20.0.0 use \Psr\Container\ContainerInterface::get + */ public function query(string $name, bool $autoload = true) { $name = $this->sanitizeName($name); |