/** @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);
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 */
* @deprecated 20.0.0
*/
public function getCommandBus() {
- return $this->query('AsyncCommandBus');
+ return $this->get(IBus::class);
}
/**