Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/private/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ public function __construct($webRoot, \OC\Config $config) {

/** @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);
Expand All @@ -926,7 +926,7 @@ public function __construct($webRoot, \OC\Config $config) {
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 */
Expand Down Expand Up @@ -1959,7 +1959,7 @@ public function getIniWrapper() {
* @deprecated 20.0.0
*/
public function getCommandBus() {
return $this->query('AsyncCommandBus');
return $this->get(IBus::class);
}

/**
Expand Down