Unverified Commit 46780e03 authored by Alex Pott's avatar Alex Pott
Browse files

feat: #3313404 Use symfony/runtime for less bespoke bootstrap/compatibility...

feat: #3313404 Use symfony/runtime for less bespoke bootstrap/compatibility with varied runtime environments

By: bradjones1
By: andypost
By: el7cosmos
By: kingdutch
By: nicxvan
By: ghost of drupal past
By: shalini_jha
By: catch
By: mxr576
By: znerol
By: xjm
By: kim.pepper
By: alexpott
By: mradcliffe
parent 46deaa34
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -140,6 +140,7 @@ AddType image/webp .webp
  RewriteCond %{REQUEST_URI} !/core/[^/]*\.php$
  # Allow access to test-specific PHP files:
  RewriteCond %{REQUEST_URI} !/core/modules/system/tests/https?\.php
  RewriteCond %{REQUEST_URI} !/core/modules/system/tests/modules/legacy_front_controller_test/test_index.php
  # Deny access to any other PHP files that do not match the rules above.
  # Specifically, disallow autoload.php from being served directly.
  RewriteRule "^(.+/.*|autoload)\.php($|/)" - [F]

autoload_runtime.php

0 → 100644
+20 −0
Original line number Diff line number Diff line
<?php

/**
 * @file
 * Includes the autoload_runtime created by the Symfony Runtime component.
 *
 * @see composer.json
 * @see index.php
 * @see core/install.php
 * @see core/rebuild.php
 */

use Drupal\Core\Runtime\DrupalRuntime;

// By default, the symfony/runtime component would load SymfonyRuntime as its
// runtime. However, Drupal's Kernel has a lot of runtime components that it
// expects to be prepared. Thus, we default Drupal applications to DrupalRuntime
// instead to make this easily accessible.
$_ENV['APP_RUNTIME'] ??= $_SERVER['APP_RUNTIME'] ?? DrupalRuntime::class;
return require __DIR__ . '/vendor/autoload_runtime.php';
+1 −0
Original line number Diff line number Diff line
@@ -71,6 +71,7 @@
            "drupal/core-vendor-hardening": true,
            "php-http/discovery": true,
            "phpstan/extension-installer": true,
            "symfony/runtime": true,
            "tbachert/spi": false
        }
    },
+85 −1
Original line number Diff line number Diff line
@@ -368,7 +368,7 @@
            "dist": {
                "type": "path",
                "url": "core",
                "reference": "824cbcf21d9a38c0706b622145be4a6498065910"
                "reference": "7677b4fe6a5cf7e8b24c9de109579ef363d21863"
            },
            "require": {
                "asm89/stack-cors": "^2.3",
@@ -417,6 +417,7 @@
                "symfony/process": "^7.4.5",
                "symfony/psr-http-message-bridge": "^7.4",
                "symfony/routing": "^7.4",
                "symfony/runtime": "^7.4",
                "symfony/serializer": "^7.4",
                "symfony/validator": "^7.4",
                "symfony/yaml": "^7.4",
@@ -4058,6 +4059,89 @@
            ],
            "time": "2025-11-27T13:27:24+00:00"
        },
        {
            "name": "symfony/runtime",
            "version": "v7.4.8",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/runtime.git",
                "reference": "6d792a64fec1eae2f011cfe9ab5978a9eab3071e"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/runtime/zipball/6d792a64fec1eae2f011cfe9ab5978a9eab3071e",
                "reference": "6d792a64fec1eae2f011cfe9ab5978a9eab3071e",
                "shasum": ""
            },
            "require": {
                "composer-plugin-api": "^1.0|^2.0",
                "php": ">=8.2"
            },
            "conflict": {
                "symfony/dotenv": "<6.4"
            },
            "require-dev": {
                "composer/composer": "^2.6",
                "symfony/console": "^6.4|^7.0|^8.0",
                "symfony/dotenv": "^6.4|^7.0|^8.0",
                "symfony/http-foundation": "^6.4|^7.0|^8.0",
                "symfony/http-kernel": "^6.4|^7.0|^8.0"
            },
            "type": "composer-plugin",
            "extra": {
                "class": "Symfony\\Component\\Runtime\\Internal\\ComposerPlugin"
            },
            "autoload": {
                "psr-4": {
                    "Symfony\\Component\\Runtime\\": "",
                    "Symfony\\Runtime\\Symfony\\Component\\": "Internal/"
                },
                "exclude-from-classmap": [
                    "/Tests/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Nicolas Grekas",
                    "email": "p@tchwork.com"
                },
                {
                    "name": "Symfony Community",
                    "homepage": "https://symfony.com/contributors"
                }
            ],
            "description": "Enables decoupling PHP applications from global state",
            "homepage": "https://symfony.com",
            "keywords": [
                "runtime"
            ],
            "support": {
                "source": "https://github.com/symfony/runtime/tree/v7.4.8"
            },
            "funding": [
                {
                    "url": "https://symfony.com/sponsor",
                    "type": "custom"
                },
                {
                    "url": "https://github.com/fabpot",
                    "type": "github"
                },
                {
                    "url": "https://github.com/nicolas-grekas",
                    "type": "github"
                },
                {
                    "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
                    "type": "tidelift"
                }
            ],
            "time": "2026-03-24T13:12:05+00:00"
        },
        {
            "name": "symfony/serializer",
            "version": "v7.4.0",
+1 −0
Original line number Diff line number Diff line
@@ -54,6 +54,7 @@
        "symfony/process": "~v7.4.5",
        "symfony/psr-http-message-bridge": "~v7.4.0",
        "symfony/routing": "~v7.4.0",
        "symfony/runtime": "~v7.4.8",
        "symfony/serializer": "~v7.4.0",
        "symfony/service-contracts": "~v3.6.1",
        "symfony/string": "~v7.4.0",
Loading