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"])
        );
    }