Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-10-08 12:50:21 +0300
committerGitHub <noreply@github.com>2020-10-08 12:50:21 +0300
commitfa374aceeb827b1e73567555d51cc1c73a2309c8 (patch)
treea0acf73b0e692a40dad9df4772bbff899c869521 /lib
parentae596362273d9232ee9ef2814a23d738eb68aeb6 (diff)
parent6a63d7b4ee61d3cb6cb44e0343b37937ed95af77 (diff)
Merge pull request #23245 from nextcloud/techdebt/server-bus-deprecate-alias
Deprecate the named alias of IBus
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Server.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index 213ae7a83e0..55a3d2da7d8 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -911,7 +911,7 @@ class Server extends ServerContainer implements IServerContainer {
/** @deprecated 20.0.0 */
$this->registerDeprecatedAlias('IniWrapper', IniGetWrapper::class);
- $this->registerService('AsyncCommandBus', function (Server $c) {
+ $this->registerService(IBus::class, function (Server $c) {
$busClass = $c->getConfig()->getSystemValue('commandbus');
if ($busClass) {
[$app, $class] = explode('::', $busClass, 2);
@@ -926,7 +926,7 @@ class Server extends ServerContainer implements IServerContainer {
return new CronBus($jobList);
}
});
- $this->registerAlias(IBus::class, 'AsyncCommandBus');
+ $this->registerDeprecatedAlias('AsyncCommandBus', IBus::class);
/** @deprecated 20.0.0 */
$this->registerDeprecatedAlias('TrustedDomainHelper', TrustedDomainHelper::class);
/** @deprecated 19.0.0 */
@@ -1959,7 +1959,7 @@ class Server extends ServerContainer implements IServerContainer {
* @deprecated 20.0.0
*/
public function getCommandBus() {
- return $this->query('AsyncCommandBus');
+ return $this->get(IBus::class);
}
/**