Skip to content

Commit

Permalink
chore: added event checking before sending mail
Browse files Browse the repository at this point in the history
  • Loading branch information
benborla committed Nov 18, 2023
1 parent 4cf66cc commit 8d63927
Show file tree
Hide file tree
Showing 9 changed files with 411 additions and 2 deletions.
4 changes: 4 additions & 0 deletions api/.env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@ DATABASE_URL="mysql://[email protected]:3306/fruity_vice?serverVersion=8.0.32&chars

API_ENDPOINT=https://fruityvice.com/api/fruit
APP_CACHE=1

###> symfony/mailer ###
# MAILER_DSN=null://null
###< symfony/mailer ###
6 changes: 6 additions & 0 deletions api/compose.override.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,9 @@ services:
ports:
- "5432"
###< doctrine/doctrine-bundle ###

###> symfony/mailer ###
mailer:
image: schickling/mailcatcher
ports: ["1025", "1080"]
###< symfony/mailer ###
4 changes: 3 additions & 1 deletion api/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"symfony/flex": "^2",
"symfony/framework-bundle": "6.3.*",
"symfony/http-client": "6.3.*",
"symfony/mailer": "6.3.*",
"symfony/runtime": "6.3.*",
"symfony/yaml": "6.3.*"
},
Expand Down Expand Up @@ -89,7 +90,8 @@
"extra": {
"symfony": {
"allow-contrib": false,
"require": "6.3.*"
"require": "6.3.*",
"docker": true
}
}
}
320 changes: 319 additions & 1 deletion api/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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

0 comments on commit 8d63927

Please sign in to comment.