Unverified Commit 57bf3237 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 8f361502
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
@@ -74,6 +74,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": "57bcca0ee7f6772c98052a6c7515df8418560402"
                "reference": "39c07a418123323d4676c83e7f71247737b411f4"
            },
            "require": {
                "asm89/stack-cors": "^2.3",
@@ -415,6 +415,7 @@
                "symfony/process": "^8.0",
                "symfony/psr-http-message-bridge": "^8.0",
                "symfony/routing": "^8.0",
                "symfony/runtime": "^8.0",
                "symfony/serializer": "^8.0",
                "symfony/validator": "^8.0",
                "symfony/yaml": "^8.0",
@@ -3851,6 +3852,89 @@
            ],
            "time": "2026-02-25T16:59:43+00:00"
        },
        {
            "name": "symfony/runtime",
            "version": "v8.0.8",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/runtime.git",
                "reference": "30884f00e017a26100fcd9aa281082ebf9a87dce"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/runtime/zipball/30884f00e017a26100fcd9aa281082ebf9a87dce",
                "reference": "30884f00e017a26100fcd9aa281082ebf9a87dce",
                "shasum": ""
            },
            "require": {
                "composer-plugin-api": "^1.0|^2.0",
                "php": ">=8.4"
            },
            "conflict": {
                "symfony/error-handler": "<7.4"
            },
            "require-dev": {
                "composer/composer": "^2.6",
                "symfony/console": "^7.4|^8.0",
                "symfony/dotenv": "^7.4|^8.0",
                "symfony/http-foundation": "^7.4|^8.0",
                "symfony/http-kernel": "^7.4|^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/v8.0.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-30T15:14:47+00:00"
        },
        {
            "name": "symfony/serializer",
            "version": "v8.0.6",
+1 −0
Original line number Diff line number Diff line
@@ -52,6 +52,7 @@
        "symfony/process": "~v8.0.5",
        "symfony/psr-http-message-bridge": "~v8.0.4",
        "symfony/routing": "~v8.0.6",
        "symfony/runtime": "~v8.0.8",
        "symfony/serializer": "~v8.0.6",
        "symfony/service-contracts": "~v3.6.1",
        "symfony/string": "~v8.0.6",
Loading