$actionSegments === ['app', 'migrate'] || $actionSegments === ['pluginstore', 'install', 'migrate'] ) { return $this->runAction(implode('/', $actionSegments)); } } // If an exception gets throw during the rendering of the 503 template, let // TemplatesController->actionRenderError() take care of it. throw new ServiceUnavailableHttpException(); } }
throw new ServiceUnavailableHttpException(); } // getIsCraftDbMigrationNeeded will return true if we're in the middle of a manual or auto-update for Craft itself. // If we're in maintenance mode and it's not a site request, show the manual update template. if ($this->getUpdates()->getIsCraftDbMigrationNeeded()) { return $this->_processUpdateLogic($request) ?: $this->getResponse(); } // If there's a new version, but the schema hasn't changed, just update the info table if ($this->getUpdates()->getHasCraftVersionChanged()) { $this->getUpdates()->updateCraftVersionInfo();
{ try { $this->state = self::STATE_BEFORE_REQUEST; $this->trigger(self::EVENT_BEFORE_REQUEST); $this->state = self::STATE_HANDLING_REQUEST; $response = $this->handleRequest($this->getRequest()); $this->state = self::STATE_AFTER_REQUEST; $this->trigger(self::EVENT_AFTER_REQUEST); $this->state = self::STATE_SENDING_RESPONSE; $response->send();
} // Load and run Craft define('CRAFT_ENVIRONMENT', getenv('ENVIRONMENT') ?: 'production'); /** @var craft\web\Application $app */ $app = require CRAFT_VENDOR_PATH.'/craftcms/cms/bootstrap/web.php'; $app->run();
$_GET = [ 'p' => '/cookies', ];