src/Viserio/Component/Bus/Provider/BusServiceProvider.php
public function getFactories(): array
    {
        return [
            DispatcherContract::class => [self::class, 'registerBusDispatcher'],
            Dispatcher::class         => static function (ContainerInterface $container) {
                return $container->get(DispatcherContract::class);
            },
            'bus' => static function (ContainerInterface $container) {
                return $container->get(DispatcherContract::class);
            },
        ];
    }
public function getFactories(): array
    {
        return [
            DispatcherContract::class => [self::class, 'registerBusDispatcher'],
            Dispatcher::class         => static function (ContainerInterface $container) {
                return $container->get(DispatcherContract::class);
            },
            'bus' => static function (ContainerInterface $container) {
                return $container->get(DispatcherContract::class);
            },
        ];
    }
{@inheritdoc}