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