From 8103abd0a2fe0a693d3cdbaac5855236698c82dc Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Thu, 29 May 2025 11:29:06 +0200 Subject: [PATCH 1/3] Readd the APP_SECRET value --- .env | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.env b/.env index 58cdce18c..6e8a4704e 100644 --- a/.env +++ b/.env @@ -16,7 +16,10 @@ ###> symfony/framework-bundle ### APP_ENV=dev -APP_SECRET= +# in your own Symfony applications, you can leave this secret empty, +# but in this example application, we need it so the application runs out of the box. +# see https://symfony.com/blog/new-in-symfony-7-2-optional-secret +APP_SECRET=2ca64f8d83b9e89f5f19d672841d6bb8 ###< symfony/framework-bundle ### ###> doctrine/doctrine-bundle ### From d6fb1f431dc0d40a94d6b4b2ae091392ab7d136b Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Thu, 29 May 2025 14:55:01 +0200 Subject: [PATCH 2/3] Add the secret in the .env.local file --- .env | 5 +---- .env.local | 4 ++++ 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 .env.local diff --git a/.env b/.env index 6e8a4704e..58cdce18c 100644 --- a/.env +++ b/.env @@ -16,10 +16,7 @@ ###> symfony/framework-bundle ### APP_ENV=dev -# in your own Symfony applications, you can leave this secret empty, -# but in this example application, we need it so the application runs out of the box. -# see https://symfony.com/blog/new-in-symfony-7-2-optional-secret -APP_SECRET=2ca64f8d83b9e89f5f19d672841d6bb8 +APP_SECRET= ###< symfony/framework-bundle ### ###> doctrine/doctrine-bundle ### diff --git a/.env.local b/.env.local new file mode 100644 index 000000000..2d9c49cfa --- /dev/null +++ b/.env.local @@ -0,0 +1,4 @@ +# in your own Symfony applications, you can leave this secret empty, +# but in this demo application, we need it so the application runs out of the box. +# see https://symfony.com/blog/new-in-symfony-7-2-optional-secret +APP_SECRET=2ca64f8d83b9e89f5f19d672841d6bb8 From b3176c826cef4831d1019724b8d834b713b453a5 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Thu, 29 May 2025 15:01:06 +0200 Subject: [PATCH 3/3] Updated comments --- .env.local | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.env.local b/.env.local index 2d9c49cfa..54d4afbb6 100644 --- a/.env.local +++ b/.env.local @@ -1,4 +1,9 @@ -# in your own Symfony applications, you can leave this secret empty, -# but in this demo application, we need it so the application runs out of the box. -# see https://symfony.com/blog/new-in-symfony-7-2-optional-secret +# In regular Symfony applications, this file should not be committed +# to a shared repository. We're including it in this demo app because +# we need to assign a value to a specific environment variable. +# See: https://symfony.com/doc/current/configuration.html#overriding-environment-values-via-env-local + +# In your own Symfony projects, you can leave the secret empty. +# However, in this demo app we provide one so it works out of the box. +# See: https://symfony.com/blog/new-in-symfony-7-2-optional-secret APP_SECRET=2ca64f8d83b9e89f5f19d672841d6bb8