Skip to content

Commit 6a63d7b

Browse files
Deprecate the named alias of IBus
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
1 parent 3b82c6c commit 6a63d7b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/private/Server.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ public function __construct($webRoot, \OC\Config $config) {
911911

912912
/** @deprecated 20.0.0 */
913913
$this->registerDeprecatedAlias('IniWrapper', IniGetWrapper::class);
914-
$this->registerService('AsyncCommandBus', function (Server $c) {
914+
$this->registerService(IBus::class, function (Server $c) {
915915
$busClass = $c->getConfig()->getSystemValue('commandbus');
916916
if ($busClass) {
917917
[$app, $class] = explode('::', $busClass, 2);
@@ -926,7 +926,7 @@ public function __construct($webRoot, \OC\Config $config) {
926926
return new CronBus($jobList);
927927
}
928928
});
929-
$this->registerAlias(IBus::class, 'AsyncCommandBus');
929+
$this->registerDeprecatedAlias('AsyncCommandBus', IBus::class);
930930
/** @deprecated 20.0.0 */
931931
$this->registerDeprecatedAlias('TrustedDomainHelper', TrustedDomainHelper::class);
932932
/** @deprecated 19.0.0 */
@@ -1959,7 +1959,7 @@ public function getIniWrapper() {
19591959
* @deprecated 20.0.0
19601960
*/
19611961
public function getCommandBus() {
1962-
return $this->query('AsyncCommandBus');
1962+
return $this->get(IBus::class);
19631963
}
19641964

19651965
/**

0 commit comments

Comments
 (0)