src/Module/EventStream/Stk2kEventStreamModule.php
public function install(ApplicationInterface $app)
    {
        try{
            $eventstream = new Stk2kEventStreamAdapter(new EventStream());
            $app->eventstream($eventstream);

            // fire event
            $eventstream->channel(Channels::SYSTEM)->push(Events::EVENTSTREAM_ATTACHED, $eventstream);
        }
        catch(\Throwable $e)
        {
            throw new ModuleInstallationException(self::class, $e->getMessage(), $e);
        }
    }
public function install(ApplicationInterface $app)
    {
        try{
            $eventstream = new Stk2kEventStreamAdapter(new EventStream());
            $app->eventstream($eventstream);

            // fire event
            $eventstream->channel(Channels::SYSTEM)->push(Events::EVENTSTREAM_ATTACHED, $eventstream);
        }
        catch(\Throwable $e)
        {
            throw new ModuleInstallationException(self::class, $e->getMessage(), $e);
        }
    }
Install module

@param ApplicationInterface $app

@throws ModuleInstallationException