code: 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);
          }
      }
docs: Install module
  
  @param ApplicationInterface $app
  
  @throws  ModuleInstallationException