Issue #3214308 by longwave, alexpott: Merge class_aliases.php into bootstrap.inc

merge-requests/683/head
catch 2021-05-17 13:01:46 +01:00
parent 3379d012fe
commit a4715517db
4 changed files with 9 additions and 16 deletions

5
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "32af6ba7e80cd9503592966d1f071c63",
"content-hash": "5e658e150305bd8c42a49e766211d9c0",
"packages": [
{
"name": "asm89/stack-cors",
@ -534,7 +534,7 @@
"dist": {
"type": "path",
"url": "core",
"reference": "874a51210b265aa07599dc966748e43cf31a0321"
"reference": "8d19de4587f2e384aad845327980c8793690bbc6"
},
"require": {
"asm89/stack-cors": "^1.1",
@ -763,7 +763,6 @@
"lib/Drupal/Core/Site/Settings.php"
],
"files": [
"class_aliases.php",
"includes/bootstrap.inc"
]
},

View File

@ -1,12 +0,0 @@
<?php
/**
* @file
* Contains class_aliases that will be added by the autoloader.
*
* @see core/composer.json
*/
// @todo https://www.drupal.org/project/drupal/issues/3197482 Remove this class
// alias once Drupal is running Symfony 5.3 or higher.
class_alias('Drupal\Core\Http\KernelEvent', 'Symfony\Component\HttpKernel\Event\KernelEvent', TRUE);

View File

@ -202,7 +202,6 @@
"lib/Drupal/Core/Site/Settings.php"
],
"files": [
"class_aliases.php",
"includes/bootstrap.inc"
]
},

View File

@ -123,6 +123,13 @@ define('REQUEST_TIME', (int) $_SERVER['REQUEST_TIME']);
*/
define('DRUPAL_ROOT', dirname(__DIR__, 2));
/**
* Declare class aliases that will be added by the autoloader.
*/
// @todo https://www.drupal.org/project/drupal/issues/3197482 Remove this class
// alias once Drupal is running Symfony 5.3 or higher.
class_alias('Drupal\Core\Http\KernelEvent', 'Symfony\Component\HttpKernel\Event\KernelEvent', TRUE);
/**
* Returns and optionally sets the filename for a system resource.
*