From 24e94e53cd17933ccaa90d9e3a0136c81a2da8da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Pineau?= Date: Fri, 3 Apr 2026 16:26:31 +0200 Subject: [PATCH] [FrameworkBundle] Use static closure in front controller (#1529) --- symfony/framework-bundle/5.3/public/index.php | 2 +- symfony/framework-bundle/5.4/public/index.php | 2 +- symfony/framework-bundle/6.2/public/index.php | 2 +- symfony/framework-bundle/6.4/public/index.php | 2 +- symfony/framework-bundle/7.0/public/index.php | 2 +- symfony/framework-bundle/7.2/public/index.php | 2 +- symfony/framework-bundle/7.3/public/index.php | 2 +- symfony/framework-bundle/7.4/public/index.php | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/symfony/framework-bundle/5.3/public/index.php b/symfony/framework-bundle/5.3/public/index.php index 9982c218..c0037a8d 100644 --- a/symfony/framework-bundle/5.3/public/index.php +++ b/symfony/framework-bundle/5.3/public/index.php @@ -4,6 +4,6 @@ use App\Kernel; require_once dirname(__DIR__).'/vendor/autoload_runtime.php'; -return function (array $context) { +return static function (array $context) { return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']); }; diff --git a/symfony/framework-bundle/5.4/public/index.php b/symfony/framework-bundle/5.4/public/index.php index 9982c218..c0037a8d 100644 --- a/symfony/framework-bundle/5.4/public/index.php +++ b/symfony/framework-bundle/5.4/public/index.php @@ -4,6 +4,6 @@ use App\Kernel; require_once dirname(__DIR__).'/vendor/autoload_runtime.php'; -return function (array $context) { +return static function (array $context) { return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']); }; diff --git a/symfony/framework-bundle/6.2/public/index.php b/symfony/framework-bundle/6.2/public/index.php index 9982c218..c0037a8d 100644 --- a/symfony/framework-bundle/6.2/public/index.php +++ b/symfony/framework-bundle/6.2/public/index.php @@ -4,6 +4,6 @@ use App\Kernel; require_once dirname(__DIR__).'/vendor/autoload_runtime.php'; -return function (array $context) { +return static function (array $context) { return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']); }; diff --git a/symfony/framework-bundle/6.4/public/index.php b/symfony/framework-bundle/6.4/public/index.php index 9982c218..c0037a8d 100644 --- a/symfony/framework-bundle/6.4/public/index.php +++ b/symfony/framework-bundle/6.4/public/index.php @@ -4,6 +4,6 @@ use App\Kernel; require_once dirname(__DIR__).'/vendor/autoload_runtime.php'; -return function (array $context) { +return static function (array $context) { return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']); }; diff --git a/symfony/framework-bundle/7.0/public/index.php b/symfony/framework-bundle/7.0/public/index.php index 9982c218..c0037a8d 100644 --- a/symfony/framework-bundle/7.0/public/index.php +++ b/symfony/framework-bundle/7.0/public/index.php @@ -4,6 +4,6 @@ use App\Kernel; require_once dirname(__DIR__).'/vendor/autoload_runtime.php'; -return function (array $context) { +return static function (array $context) { return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']); }; diff --git a/symfony/framework-bundle/7.2/public/index.php b/symfony/framework-bundle/7.2/public/index.php index 9982c218..c0037a8d 100644 --- a/symfony/framework-bundle/7.2/public/index.php +++ b/symfony/framework-bundle/7.2/public/index.php @@ -4,6 +4,6 @@ use App\Kernel; require_once dirname(__DIR__).'/vendor/autoload_runtime.php'; -return function (array $context) { +return static function (array $context) { return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']); }; diff --git a/symfony/framework-bundle/7.3/public/index.php b/symfony/framework-bundle/7.3/public/index.php index 9982c218..c0037a8d 100644 --- a/symfony/framework-bundle/7.3/public/index.php +++ b/symfony/framework-bundle/7.3/public/index.php @@ -4,6 +4,6 @@ use App\Kernel; require_once dirname(__DIR__).'/vendor/autoload_runtime.php'; -return function (array $context) { +return static function (array $context) { return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']); }; diff --git a/symfony/framework-bundle/7.4/public/index.php b/symfony/framework-bundle/7.4/public/index.php index 9982c218..c0037a8d 100644 --- a/symfony/framework-bundle/7.4/public/index.php +++ b/symfony/framework-bundle/7.4/public/index.php @@ -4,6 +4,6 @@ use App\Kernel; require_once dirname(__DIR__).'/vendor/autoload_runtime.php'; -return function (array $context) { +return static function (array $context) { return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']); };