File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -41,18 +41,15 @@ Define FileTransport as service in `services.yml`:
41
41
swiftmailer.mailer.transport.file:
42
42
class: Geekdevs\SwiftMailer\Transport\FileTransport
43
43
arguments:
44
- - "@swiftmailer.mailer.file .transport.eventdispatcher"
45
- - "%kernel.root_dir% /emails"
44
+ - "@swiftmailer.mailer.default .transport.eventdispatcher"
45
+ - "%kernel.project_dir%/var /emails"
46
46
```
47
47
48
48
Configure SwiftMailer to understand new transport in ` config.yml ` file:
49
49
50
50
```
51
51
swiftmailer:
52
- default_mailer: file
53
- mailers:
54
- file:
55
- transport: file
52
+ transport: file
56
53
```
57
54
58
55
## Copy plugin
@@ -65,11 +62,11 @@ Define CopyPlugin as service in `services.yml`:
65
62
66
63
```
67
64
swiftmailer.mailer.plugin.copy:
68
- class: Geekdevs\SwiftMailer\Plugins \CopyPlugin
65
+ class: Geekdevs\SwiftMailer\Plugin \CopyPlugin
69
66
arguments:
70
67
71
68
tags:
72
- - { name: "swiftmailer.primary .plugin" }
69
+ - { name: "swiftmailer.default .plugin" }
73
70
```
74
71
75
- Note the tag ` swiftmailer.primary.plugin ` where "primary " should be the name of your mailer.
72
+ Note the tag ` swiftmailer.primary.plugin ` where "default " should be the name of your mailer.
You can’t perform that action at this time.
0 commit comments