src/Viserio/Component/Events/Provider/EventsServiceProvider.php
public function getFactories(): array
    {
        return [
            EventManagerContract::class => static function (): EventManager {
                return new EventManager();
            },
            EventManager::class => static function (ContainerInterface $container) {
                return $container->get(EventManagerContract::class);
            },
            'events' => static function (ContainerInterface $container) {
                return $container->get(EventManagerContract::class);
            },
        ];
    }
public function getFactories(): array
    {
        return [
            EventManagerContract::class => static function (): EventManager {
                return new EventManager();
            },
            EventManager::class => static function (ContainerInterface $container) {
                return $container->get(EventManagerContract::class);
            },
            'events' => static function (ContainerInterface $container) {
                return $container->get(EventManagerContract::class);
            },
        ];
    }
{@inheritdoc}