Skip to content

Commit

Permalink
Add missing SwiftMailer dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
tchapi committed Dec 1, 2019
1 parent 35df692 commit 68126a9
Show file tree
Hide file tree
Showing 9 changed files with 245 additions and 16 deletions.
7 changes: 7 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ APP_SECRET=630dc0d699fd37e720aff268f75583ed
DATABASE_URL=mysql://davis:[email protected]:3306/davis
###< doctrine/doctrine-bundle ###

###> symfony/swiftmailer-bundle ###
# For Gmail as a transport, use: "gmail://username:password@localhost"
# For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode="
# Delivery is disabled by default via "null://localhost"
MAILER_URL=smtp://localhost:465?encryption=ssl&auth_mode=login&username=&password=
###< symfony/swiftmailer-bundle ###

# The admin password for the backend
ADMIN_LOGIN=admin
ADMIN_PASSWORD=test
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"symfony/process": "^5.0",
"symfony/security-bundle": "^5.0",
"symfony/serializer-pack": "*",
"symfony/swiftmailer-bundle": "^3.4",
"symfony/translation": "^5.0",
"symfony/twig-bundle": "^5.0",
"symfony/validator": "^5.0",
Expand Down
217 changes: 201 additions & 16 deletions composer.lock

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

1 change: 1 addition & 0 deletions config/bundles.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true, 'test' => true],
Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true],
Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle::class => ['all' => true],
];
4 changes: 4 additions & 0 deletions config/packages/dev/swiftmailer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# See https://symfony.com/doc/current/email/dev_environment.html
swiftmailer:
# send all emails to a specific address
#delivery_addresses: ['[email protected]']
3 changes: 3 additions & 0 deletions config/packages/swiftmailer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
swiftmailer:
url: '%env(MAILER_URL)%'
spool: { type: 'memory' }
2 changes: 2 additions & 0 deletions config/packages/test/swiftmailer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
swiftmailer:
disable_delivery: true
6 changes: 6 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
<server name="SHELL_VERBOSITY" value="-1" />
<server name="SYMFONY_PHPUNIT_REMOVE" value="" />
<server name="SYMFONY_PHPUNIT_VERSION" value="7.5" />
<!-- ###+ symfony/swiftmailer-bundle ### -->
<!-- For Gmail as a transport, use: "gmail://username:password@localhost" -->
<!-- For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode=" -->
<!-- Delivery is disabled by default via "null://localhost" -->
<env name="MAILER_URL" value="null://localhost"/>
<!-- ###- symfony/swiftmailer-bundle ### -->
</php>

<testsuites>
Expand Down
Loading

0 comments on commit 68126a9

Please sign in to comment.