Drupal from 10.6.17 to 11.4.7
This commit is contained in:
+4
-9
@@ -9,9 +9,8 @@
|
||||
*/
|
||||
|
||||
use Drupal\Core\Update\UpdateKernel;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
$autoloader = require_once 'autoload.php';
|
||||
require_once 'autoload_runtime.php';
|
||||
|
||||
// Disable garbage collection during test runs. Under certain circumstances the
|
||||
// update path will create so many objects that garbage collection causes
|
||||
@@ -21,10 +20,6 @@ if (drupal_valid_test_ua()) {
|
||||
gc_disable();
|
||||
}
|
||||
|
||||
$kernel = new UpdateKernel('prod', $autoloader, FALSE);
|
||||
$request = Request::createFromGlobals();
|
||||
|
||||
$response = $kernel->handle($request);
|
||||
$response->send();
|
||||
|
||||
$kernel->terminate($request, $response);
|
||||
return static function () {
|
||||
return new UpdateKernel('prod', require 'autoload.php', FALSE);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user