code: public function install(ApplicationInterface $app)
      {
          try{
              $response = new PsrResponseAdapter(new Response);
              $app->response($response);
  
              // fire event
              $app->eventstream()->channel(Channels::SYSTEM)->push(Events::RESPONSE_ATTACHED, $response);
          }
          catch(\Throwable $e)
          {
              throw new ModuleInstallationException(self::class, $e->getMessage(), $e);
          }
      }
docs: Install module
  
  @param ApplicationInterface $app
  
  @throws ModuleInstallationException