]> Raphaël G. Git Repositories - airlibre/commitdiff
Recipe symfony/framework-bundle update
authorRaphaël Gertz <git@rapsys.eu>
Thu, 26 Nov 2026 17:26:37 +0000 (18:26 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Thu, 26 Nov 2026 17:26:37 +0000 (18:26 +0100)
.editorconfig [new file with mode: 0644]
.env
config/packages/framework.yaml
config/preload.php
config/routes/framework.yaml
config/services.yaml
public/index.php

diff --git a/.editorconfig b/.editorconfig
new file mode 100644 (file)
index 0000000..6699076
--- /dev/null
@@ -0,0 +1,17 @@
+# editorconfig.org
+
+root = true
+
+[*]
+charset = utf-8
+end_of_line = lf
+indent_size = 4
+indent_style = space
+insert_final_newline = true
+trim_trailing_whitespace = true
+
+[{compose.yaml,compose.*.yaml}]
+indent_size = 2
+
+[*.md]
+trim_trailing_whitespace = false
diff --git a/.env b/.env
index 8e1a10757551d82a5953a78743bc594ef8604edd..74e15be57464447c73078cf40a39770e2747244d 100644 (file)
--- a/.env
+++ b/.env
@@ -17,6 +17,7 @@
 ###> symfony/framework-bundle ###
 APP_ENV="dev"
 APP_SECRET="Ch4ng3m3!"
+APP_SHARE_DIR="var/share"
 ###< symfony/framework-bundle ###
 
 ###> doctrine/doctrine-bundle ###
index 877eb25d15da47921c07414c3b5d3a333cf889ff..7e1ee1f1e0d1183963de0d822c064178a2c4422c 100644 (file)
@@ -1,7 +1,6 @@
 # see https://symfony.com/doc/current/reference/configuration/framework.html
 framework:
     secret: '%env(APP_SECRET)%'
-    #csrf_protection: true
 
     # Note that the session will be started ONLY if you read or write from it.
     session: true
index 5ebcdb2153c870e7d915f3b3fcdd55821424284c..14cee661e3b102e3726eb9b505a6329912ffdef6 100644 (file)
@@ -1,5 +1,5 @@
 <?php
 
-if (file_exists(dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php')) {
-    require dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php';
+foreach (glob(dirname(__DIR__).'/var/cache/prod/*.preload.php') ?: [] as $file) {
+    require $file;
 }
index 0fc74bbac4b757dd49782f0be496f6fd7e07e47c..bc1feace13eadb8e816abc883919ed60383b1acd 100644 (file)
@@ -1,4 +1,4 @@
 when@dev:
     _errors:
-        resource: '@FrameworkBundle/Resources/config/routing/errors.xml'
+        resource: '@FrameworkBundle/Resources/config/routing/errors.php'
         prefix: /_error
index 61edc544dba854ad1b3959e51f7f8cbfee5b8ea3..2ec79724406f7035f429d6d731d29a013cb01fb7 100644 (file)
@@ -1,5 +1,8 @@
+# yaml-language-server: $schema=../vendor/symfony/dependency-injection/Loader/schema/services.schema.json
+
 # This file is the entry point to configure your own services.
 # Files in the packages/ subdirectory configure your dependencies.
+# See also https://symfony.com/doc/current/service_container/import.html
 
 # Put parameters here that don't need to change on each machine where the app is deployed
 # https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration
index 9982c218d6969c72d4c91e3834e3f535e2dfe68b..c0037a8db4a454268d8c843a351964bed75d0df2 100644 (file)
@@ -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']);
 };