Skip to content
Snippets Groups Projects
Select Git revision
  • 11.x default
  • 3446250-replace-and-deprecate
  • 10.3.x
  • 10.4.x
  • 11.0.x
  • 10.2.x
  • 7.x
  • 10.1.x
  • 9.5.x
  • 10.0.x
  • 9.4.x
  • 9.3.x
  • 9.2.x
  • 9.1.x
  • 8.9.x
  • 9.0.x
  • 8.8.x
  • 8.7.x
  • 8.6.x
  • 8.5.x
  • 10.3.5
  • 11.0.4
  • 10.2.8
  • 10.3.4
  • 11.0.3
  • 10.3.3
  • 11.0.2
  • 10.3.2
  • 11.0.1
  • 11.0.0
  • 11.0.0-rc1
  • 10.3.1
  • 10.3.0
  • 10.2.7
  • 10.3.0-rc1
  • 7.101
  • 11.0.0-beta1
  • 10.3.0-beta1
  • 11.0.0-alpha1
  • 10.2.6
40 results

update.php

Blame
  • Forked from project / drupal
    1398 commits behind the upstream repository.
    catch's avatar
    Issue #3151118 by alexpott, Beakerboy, kapilkumar0324, anmolgoyal74, jungle,...
    catch authored
    Issue #3151118 by alexpott, Beakerboy, kapilkumar0324, anmolgoyal74, jungle, heddn, Mile23, andypost, daffie: Include bootstrap.inc using composer
    b72fe50a
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    update.php 804 B
    <?php
    
    /**
     * @file
     * The PHP page that handles updating the Drupal installation.
     *
     * All Drupal code is released under the GNU General Public License.
     * See COPYRIGHT.txt and LICENSE.txt files in the "core" directory.
     */
    
    use Drupal\Core\Update\UpdateKernel;
    use Symfony\Component\HttpFoundation\Request;
    
    $autoloader = require_once 'autoload.php';
    
    // Disable garbage collection during test runs. Under certain circumstances the
    // update path will create so many objects that garbage collection causes
    // segmentation faults.
    if (drupal_valid_test_ua()) {
      gc_collect_cycles();
      gc_disable();
    }
    
    $kernel = new UpdateKernel('prod', $autoloader, FALSE);
    $request = Request::createFromGlobals();
    
    $response = $kernel->handle($request);
    $response->send();
    
    $kernel->terminate($request, $response);