src/Module/Env/DotEnvModule.php
public function install(ApplicationInterface $app)
    {
        try{
            $env_dir = $app->fileSystem()->getDirectory('env');
            $env = new Dotenv($env_dir);
            $result = $env->overload();

            // fire event
            $app->eventstream()->channel(Channels::SYSTEM)->push(Events::ENV_LOADED, $result);
        }
        catch(\Throwable $e)
        {
            throw new ModuleInstallationException(self::class, $e->getMessage(), $e);
        }
    }
public function install(ApplicationInterface $app)
    {
        try{
            $env_dir = $app->fileSystem()->getDirectory('env');
            $env = new Dotenv($env_dir);
            $result = $env->overload();

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

@param ApplicationInterface $app

@throws  ModuleInstallationException