Merge pull request #21887 from nextcloud/techdebt/deprecate-server-container-query

Deprecate the query mothod on the server container
This commit is contained in:
Christoph Wurst 2020-07-17 14:55:40 +02:00 committed by GitHub
commit 7224d268e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);