UpdateKernel::shutdownSession

protected UpdateKernel::shutdownSession(Request $request) Ensures that the session is saved. Parameters \Symfony\Component\HttpFoundation\Request $request: The incoming request. File core/lib/Drupal/Core/Update/UpdateKernel.php, line 136 Class UpdateKernel Defines a kernel which is used primarily to run the update of Drupal. Namespace Drupal\Core\Update Code protected function shutdownSession(Request $request) { if ($request->hasSession()) { $request->getSession()->save

UpdateKernel::setupRequestMatch

protected UpdateKernel::setupRequestMatch(Request $request) Set up the request with fake routing data for update.php. This fake routing data is needed in order to make batch API work properly. Parameters \Symfony\Component\HttpFoundation\Request $request: The incoming request. File core/lib/Drupal/Core/Update/UpdateKernel.php, line 150 Class UpdateKernel Defines a kernel which is used primarily to run the update of Drupal. Namespace Drupal\Core\Update Code protected function setupRequ

UpdateKernel

Defines a kernel which is used primarily to run the update of Drupal. We use a dedicated kernel + front controller (update.php) in order to be able to repair Drupal if it is in a broken state. Hierarchy class \Drupal\Core\DrupalKernel implements DrupalKernelInterface, TerminableInterfaceclass \Drupal\Core\Update\UpdateKernel See also update.php \Drupal\system\Controller\DbUpdateController File core/lib/Drupal/Core/Update/UpdateKernel.php, line 22 Namespace Drupal\Core\Update Members

UpdateKernel::bootSession

protected UpdateKernel::bootSession(Request $request) Boots up the session. bootSession() + shutdownSession() basically simulates what \Drupal\Core\StackMiddleware\Session does. Parameters \Symfony\Component\HttpFoundation\Request $request: The incoming request. File core/lib/Drupal/Core/Update/UpdateKernel.php, line 122 Class UpdateKernel Defines a kernel which is used primarily to run the update of Drupal. Namespace Drupal\Core\Update Code protected function bootSession(Request $req

UpdateKernel::cacheDrupalContainer

protected UpdateKernel::cacheDrupalContainer(array $container_definition) Stores the container definition in a cache. Parameters array $container_definition: The container definition to cache. Return value bool TRUE if the container was successfully cached. Overrides DrupalKernel::cacheDrupalContainer File core/lib/Drupal/Core/Update/UpdateKernel.php, line 47 Class UpdateKernel Defines a kernel which is used primarily to run the update of Drupal. Namespace Drupal\Core\Update Code pro

UpdateKernel::discoverServiceProviders

public UpdateKernel::discoverServiceProviders() Discovers available serviceProviders. Return value array The available serviceProviders. Overrides DrupalKernel::discoverServiceProviders File core/lib/Drupal/Core/Update/UpdateKernel.php, line 27 Class UpdateKernel Defines a kernel which is used primarily to run the update of Drupal. Namespace Drupal\Core\Update Code public function discoverServiceProviders() { parent::discoverServiceProviders(); $this->serviceProviderClasses['a

UpdateKernel::handle

public UpdateKernel::handle(Request $request, $type = self::MASTER_REQUEST, $catch = TRUE) Handles a Request to convert it to a Response. When $catch is true, the implementation must catch all exceptions and do its best to convert them to a Response instance. Parameters Request $request A Request instance: int $type The type of the request: (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST) bool $catch Whether to catch exceptions or not: Return value Response A R

UpdateFetcherInterface::fetchProjectData

public UpdateFetcherInterface::fetchProjectData(array $project, $site_key = '') Retrieves the project information. Parameters array $project: The array of project information from \Drupal\Update\UpdateManager::getProjects(). string $site_key: (optional) The anonymous site key hash. Defaults to an empty string. Return value string The project information fetched as string. Empty string upon failure. File core/modules/update/src/UpdateFetcherInterface.php, line 36 Class UpdateFetcherInterfa

UpdateFetcherInterface::getFetchBaseUrl

public UpdateFetcherInterface::getFetchBaseUrl($project) Returns the base of the URL to fetch available update data for a project. Parameters array $project: The array of project information from \Drupal\Update\UpdateManager::getProjects(). Return value string The base of the URL used for fetching available update data. This does not include the path elements to specify a particular project, version, site_key, etc. File core/modules/update/src/UpdateFetcherInterface.php, line 22 Class Upd

UpdateFetcher::__construct

public UpdateFetcher::__construct(ConfigFactoryInterface $config_factory, ClientInterface $http_client) Constructs a UpdateFetcher. Parameters \Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory. \GuzzleHttp\ClientInterface $http_client: A Guzzle client object. File core/modules/update/src/UpdateFetcher.php, line 51 Class UpdateFetcher Fetches project information from remote locations. Namespace Drupal\update Code public function __construct(ConfigFactoryInt