code: public function bootstrap($rootDir, $siteName)
      {
          $this->app["red_kite_cms.root_dir"] = $rootDir;
          $this->siteName = $siteName;
  
          $this->checkPermissions($rootDir);
          $this->initCmsRequiredServices();
          $this->registerProviders();
          $this->registerServices();
          $this->registerListeners();
          $this->register($this->app);
          $this->boot();
          $this->addWebsiteRoutes();
  
          $this->app["dispatcher"]->dispatch(
              CmsEvents::CMS_BOOTED,
              new CmsBootedEvent($this->app["red_kite_cms.configuration_handler"])
          );
      }
docs: Bootstraps the application
  
  @param string $rootDir
  @param string $siteName