Skip to content

Commit 68126a9

Browse files
committed
Add missing SwiftMailer dependency
1 parent 35df692 commit 68126a9

File tree

9 files changed

+245
-16
lines changed

9 files changed

+245
-16
lines changed

.env

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ APP_SECRET=630dc0d699fd37e720aff268f75583ed
2828
DATABASE_URL=mysql://davis:davis@127.0.0.1:3306/davis
2929
###< doctrine/doctrine-bundle ###
3030

31+
###> symfony/swiftmailer-bundle ###
32+
# For Gmail as a transport, use: "gmail://username:password@localhost"
33+
# For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode="
34+
# Delivery is disabled by default via "null://localhost"
35+
MAILER_URL=smtp://localhost:465?encryption=ssl&auth_mode=login&username=&password=
36+
###< symfony/swiftmailer-bundle ###
37+
3138
# The admin password for the backend
3239
ADMIN_LOGIN=admin
3340
ADMIN_PASSWORD=test

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"symfony/process": "^5.0",
2323
"symfony/security-bundle": "^5.0",
2424
"symfony/serializer-pack": "*",
25+
"symfony/swiftmailer-bundle": "^3.4",
2526
"symfony/translation": "^5.0",
2627
"symfony/twig-bundle": "^5.0",
2728
"symfony/validator": "^5.0",

composer.lock

Lines changed: 201 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/bundles.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@
1111
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
1212
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true, 'test' => true],
1313
Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true],
14+
Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle::class => ['all' => true],
1415
];
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# See https://symfony.com/doc/current/email/dev_environment.html
2+
swiftmailer:
3+
# send all emails to a specific address
4+
#delivery_addresses: ['me@example.com']

config/packages/swiftmailer.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
swiftmailer:
2+
url: '%env(MAILER_URL)%'
3+
spool: { type: 'memory' }
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
swiftmailer:
2+
disable_delivery: true

phpunit.xml.dist

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
<server name="SHELL_VERBOSITY" value="-1" />
1414
<server name="SYMFONY_PHPUNIT_REMOVE" value="" />
1515
<server name="SYMFONY_PHPUNIT_VERSION" value="7.5" />
16+
<!-- ###+ symfony/swiftmailer-bundle ### -->
17+
<!-- For Gmail as a transport, use: "gmail://username:password@localhost" -->
18+
<!-- For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode=" -->
19+
<!-- Delivery is disabled by default via "null://localhost" -->
20+
<env name="MAILER_URL" value="null://localhost"/>
21+
<!-- ###- symfony/swiftmailer-bundle ### -->
1622
</php>
1723

1824
<testsuites>

0 commit comments

Comments
 (0)