From 0f7d7a452a918d55fd66c6ea17b59b6e7fc9b62a Mon Sep 17 00:00:00 2001 From: DragonSlayer_14 Date: Sat, 13 Jun 2026 16:48:12 +0200 Subject: [PATCH] =?UTF-8?q?Feat:=20Setzt=20statische=20Funktionen=20ein,?= =?UTF-8?q?=20aktiviert=20Opcache-Preloading=20und=20aktualisiert=20Import?= =?UTF-8?q?map=20sowie=20Composer-Abh=C3=A4ngigkeiten?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/console | 2 +- composer.json | 1 + composer.lock | 5 +++-- config/preload.php | 2 +- importmap.php | 20 ++++++++++++++++---- public/index.php | 2 +- 6 files changed, 23 insertions(+), 9 deletions(-) diff --git a/bin/console b/bin/console index d8d530e..a0b67ba 100755 --- a/bin/console +++ b/bin/console @@ -14,7 +14,7 @@ if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) { require_once dirname(__DIR__).'/vendor/autoload_runtime.php'; -return function (array $context) { +return static function (array $context) { $kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']); return new Application($kernel); diff --git a/composer.json b/composer.json index 95e3d4d..83b176f 100644 --- a/composer.json +++ b/composer.json @@ -10,6 +10,7 @@ "ext-ctype": "*", "ext-iconv": "*", "ext-redis": "*", + "ext-zend-opcache": "*", "symfony/asset": "8.1.*", "symfony/asset-mapper": "8.1.*", "symfony/cache": "8.1.*", diff --git a/composer.lock b/composer.lock index 090929d..5dd3d5c 100644 --- a/composer.lock +++ b/composer.lock @@ -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": "96e1f33a9305b01c5a60a23677f28c09", + "content-hash": "47f5a956caee19d61ae3aee269641fff", "packages": [ { "name": "composer/semver", @@ -4273,7 +4273,8 @@ "php": ">=8.2", "ext-ctype": "*", "ext-iconv": "*", - "ext-redis": "*" + "ext-redis": "*", + "ext-zend-opcache": "*" }, "platform-dev": {}, "plugin-api-version": "2.9.0" diff --git a/config/preload.php b/config/preload.php index 5ebcdb2..4d4360d 100644 --- a/config/preload.php +++ b/config/preload.php @@ -1,5 +1,5 @@ */ return [ - 'app' => [ - 'path' => './assets/app.js', - 'entrypoint' => true, - ], + 'app' => ['path' => './assets/app.js', 'entrypoint' => true], + '@symfony/webpack-encore' => ['version' => '6.0.0'], + 'bootstrap' => ['version' => '5.3.8'], + '@popperjs/core' => ['version' => '2.11.8'], + 'bootstrap/dist/css/bootstrap.min.css' => ['version' => '5.3.8', 'type' => 'css'], ]; diff --git a/public/index.php b/public/index.php index 9982c21..c0037a8 100644 --- a/public/index.php +++ b/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']); };