Skip to content

Commit

Permalink
👷 Move settings to single package config (#643)
Browse files Browse the repository at this point in the history
  • Loading branch information
0x46616c6b authored Sep 28, 2024
1 parent 3d59c70 commit ec9f6f3
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 39 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ APP_SECRET="165e25e3846534bb4665d7078a851c0b"
###> symfony/mailer ###
# For a generic SMTP server, use: "smtp://localhost:25"
# Delivery is disabled by default via "null://null"
MAILER_DSN="smtp://localhost:25"
MAILER_DSN="null://null"
MAILER_DELIVERY_ADDRESS="admin@example.org"
###< symfony/mailer ###

Expand Down
16 changes: 0 additions & 16 deletions config/packages/dev/easy_log_handler.yaml

This file was deleted.

7 changes: 0 additions & 7 deletions config/packages/dev/mailer.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions config/packages/dev/routing.yaml

This file was deleted.

5 changes: 5 additions & 0 deletions config/packages/mailer.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
framework:
mailer:
dsn: '%env(MAILER_DSN)%'

when@test:
framework:
mailer:
dsn: 'null://null'
3 changes: 0 additions & 3 deletions config/packages/prod/validator.yaml

This file was deleted.

10 changes: 10 additions & 0 deletions config/packages/routing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,13 @@ when@prod:
framework:
router:
strict_requirements: null

when@dev:
framework:
router:
strict_requirements: true

when@test:
framework:
router:
strict_requirements: true
3 changes: 0 additions & 3 deletions config/packages/test/mailer.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions config/packages/test/routing.yaml

This file was deleted.

6 changes: 6 additions & 0 deletions config/packages/validator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ framework:
#auto_mapping:
# App\Entity\: []

when@prod:
framework:
validation:
cache: validator.mapping.cache.doctrine.apc


when@test:
framework:
validation:
Expand Down
3 changes: 0 additions & 3 deletions config/routes/dev/twig.yaml

This file was deleted.

4 changes: 4 additions & 0 deletions config/routes/twig.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
when@dev:
_errors:
resource: '@FrameworkBundle/Resources/config/routing/errors.xml'
prefix: /_error

0 comments on commit ec9f6f3

Please sign in to comment.