Explorar o código

Squashed commit of the following:

commit 76022aeb59d48fef5e744fb85531293cdfd903bc
Author: Sangfroid <francois@fdlibre.eu>
Date:   Thu Jun 26 08:02:51 2025 +0200

    web-profiler recipe update

commit 3d4a00df997659fe28fb807bbaf1cc57a0bfbc88
Author: Sangfroid <francois@fdlibre.eu>
Date:   Thu Jun 26 08:01:59 2025 +0200

    translations recipe update

commit e8b7f706fa3b0906beb637e5f12bfac7bf2fc12a
Author: Sangfroid <francois@fdlibre.eu>
Date:   Thu Jun 26 07:58:49 2025 +0200

    mailer recipes update

commit 1cabb5ec0017b1c14f91da6874a1fba17ceb6155
Author: Sangfroid <francois@fdlibre.eu>
Date:   Thu Jun 26 07:57:48 2025 +0200

    flex recipes update

commit 1fb2578c5f610c32770f14246362ad91b9f24867
Author: Sangfroid <francois@fdlibre.eu>
Date:   Thu Jun 26 07:56:53 2025 +0200

    asset-mapper recipes update

commit b265ab0df5a2be169e970bd14beb2b59a0e716a2
Author: Sangfroid <francois@fdlibre.eu>
Date:   Thu Jun 26 07:56:15 2025 +0200

    apache-pack recipes update

commit 63eb770d8564880e9ccc2769522cccc45b109a1c
Author: Sangfroid <francois@fdlibre.eu>
Date:   Thu Jun 26 07:55:40 2025 +0200

    phpunits recipes update

commit a09fa8e5db6209bad2755ba6e086799b53ef757c
Author: Sangfroid <francois@fdlibre.eu>
Date:   Thu Jun 26 07:55:04 2025 +0200

    Doctrine recipes update

commit 34d2c098fd3b72f431b3ab1bf758a82f393f2416
Author: Sangfroid <francois@fdlibre.eu>
Date:   Thu Jun 26 07:54:06 2025 +0200

    Composer update
Sangfroid hai 5 días
pai
achega
10fcaa9566

+ 2 - 2
.env

@@ -23,7 +23,7 @@ APP_SECRET=5ea4fa292fdf2e0c184b1957540df3d1
 # Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
 # IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
 #
-# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
+# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data_%kernel.environment%.db"
 # DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=8.0.32&charset=utf8mb4"
 # DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4"
 DATABASE_URL="postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=16&charset=utf8"
@@ -37,7 +37,7 @@ MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0
 ###< symfony/messenger ###
 
 ###> symfony/mailer ###
-# MAILER_DSN=null://null
+MAILER_DSN=null://null
 ###< symfony/mailer ###
 
 TITLE="Opinion sur le réel"

+ 0 - 0
.env.dev


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 205 - 213
composer.lock


+ 6 - 0
config/packages/asset_mapper.yaml

@@ -3,3 +3,9 @@ framework:
         # The paths to make available to the asset mapper.
         paths:
             - assets/
+        missing_import_mode: strict
+
+when@prod:
+    framework:
+        asset_mapper:
+            missing_import_mode: warn

+ 0 - 2
config/packages/translation.yaml

@@ -2,6 +2,4 @@ framework:
     default_locale: fr
     translator:
         default_path: '%kernel.project_dir%/translations'
-        fallbacks:
-            - fr
         providers:

+ 0 - 6
config/packages/web_profiler.yaml

@@ -1,17 +1,11 @@
 when@dev:
     web_profiler:
         toolbar: true
-        intercept_redirects: false
 
     framework:
         profiler:
-            only_exceptions: false
             collect_serializer_data: true
 
 when@test:
-    web_profiler:
-        toolbar: false
-        intercept_redirects: false
-
     framework:
         profiler: { collect: false }

+ 1 - 1
public/.htaccess

@@ -50,7 +50,7 @@ DirectoryIndex index.php
     # - use Apache >= 2.3.9 and replace all L flags by END flags and remove the
     #   following RewriteCond (best solution)
     RewriteCond %{ENV:REDIRECT_STATUS} =""
-    RewriteRule ^index\.php(?:/(.*)|$) %{ENV:BASE}/$1 [R=301,L]
+    RewriteRule ^index\.php(?:/(.*)|$) %{ENV:BASE}/$1 [R=308,L]
 
     # If the requested filename exists, simply serve it.
     # We only want to let Apache serve files and not directories.

+ 22 - 12
symfony.lock

@@ -1,11 +1,20 @@
 {
+    "doctrine/deprecations": {
+        "version": "1.1",
+        "recipe": {
+            "repo": "github.com/symfony/recipes",
+            "branch": "main",
+            "version": "1.0",
+            "ref": "87424683adc81d7dc305eefec1fced883084aab9"
+        }
+    },
     "doctrine/doctrine-bundle": {
-        "version": "2.13",
+        "version": "2.15",
         "recipe": {
             "repo": "github.com/symfony/recipes",
             "branch": "main",
             "version": "2.13",
-            "ref": "8d96c0b51591ffc26794d865ba3ee7d193438a83"
+            "ref": "620b57f496f2e599a6015a9fa222c2ee0a32adcb"
         },
         "files": [
             "config/packages/doctrine.yaml",
@@ -32,7 +41,7 @@
             "repo": "github.com/symfony/recipes",
             "branch": "main",
             "version": "9.6",
-            "ref": "7364a21d87e658eb363c5020c072ecfdc12e2326"
+            "ref": "6a9341aa97d441627f8bd424ae85dc04c944f8b4"
         },
         "files": [
             ".env.test",
@@ -46,7 +55,7 @@
             "repo": "github.com/symfony/recipes-contrib",
             "branch": "main",
             "version": "1.0",
-            "ref": "0f18b4decdf5695d692c1d0dfd65516a07a6adf1"
+            "ref": "5d454ec6cc4c700ed3d963f3803e1d427d9669fb"
         },
         "files": [
             "public/.htaccess"
@@ -58,7 +67,7 @@
             "repo": "github.com/symfony/recipes",
             "branch": "main",
             "version": "6.4",
-            "ref": "6c28c471640cc2c6e60812ebcb961c526ef8997f"
+            "ref": "5ad1308aa756d58f999ffbe1540d1189f5d7d14a"
         },
         "files": [
             "assets/app.js",
@@ -92,15 +101,16 @@
         ]
     },
     "symfony/flex": {
-        "version": "2.4",
+        "version": "2.7",
         "recipe": {
             "repo": "github.com/symfony/recipes",
             "branch": "main",
-            "version": "1.0",
-            "ref": "146251ae39e06a95be0fe3d13c807bcf3938b172"
+            "version": "2.4",
+            "ref": "52e9754527a15e2b79d9a610f98185a1fe46622a"
         },
         "files": [
-            ".env"
+            ".env",
+            ".env.dev"
         ]
     },
     "symfony/framework-bundle": {
@@ -128,7 +138,7 @@
             "repo": "github.com/symfony/recipes",
             "branch": "main",
             "version": "4.3",
-            "ref": "df66ee1f226c46f01e85c29c2f7acce0596ba35a"
+            "ref": "09051cfde49476e3c12cd3a0e44289ace1c75a4f"
         },
         "files": [
             "config/packages/mailer.yaml"
@@ -240,7 +250,7 @@
             "repo": "github.com/symfony/recipes",
             "branch": "main",
             "version": "6.3",
-            "ref": "e28e27f53663cc34f0be2837aba18e3a1bef8e7b"
+            "ref": "620a1b84865ceb2ba304c8f8bf2a185fbf32a843"
         },
         "files": [
             "config/packages/translation.yaml",
@@ -281,7 +291,7 @@
             "repo": "github.com/symfony/recipes",
             "branch": "main",
             "version": "6.1",
-            "ref": "e42b3f0177df239add25373083a564e5ead4e13a"
+            "ref": "8b51135b84f4266e3b4c8a6dc23c9d1e32e543b7"
         },
         "files": [
             "config/packages/web_profiler.yaml",

+ 1 - 3
tests/bootstrap.php

@@ -4,8 +4,6 @@ use Symfony\Component\Dotenv\Dotenv;
 
 require dirname(__DIR__).'/vendor/autoload.php';
 
-if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {
-    require dirname(__DIR__).'/config/bootstrap.php';
-} elseif (method_exists(Dotenv::class, 'bootEnv')) {
+if (method_exists(Dotenv::class, 'bootEnv')) {
     (new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
 }

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio