Skip to content
This repository was archived by the owner on Jan 14, 2019. It is now read-only.

Commit aea4f18

Browse files
committed
updated readme for symfony usage
1 parent bb91d43 commit aea4f18

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@ $mailer = new Swift_Mailer($yourTransport);
2020
$mailer->registerPlugin(new ImageEmbedPlugin());
2121
```
2222

23+
or for symfony in your services.yml:
24+
```yml
25+
hexanet.swiftmailer.image_embed_plugin:
26+
class: Hexanet\Swiftmailer\ImageEmbedPlugin
27+
tags:
28+
- { name: swiftmailer.default.plugin }
29+
arguments: ['%kernel.root_dir%/../web/']
30+
```
31+
32+
The arguments are optional.
33+
2334
## Credits
2435
2536
Developed by the [Dev Team](http://teamdev.hexanet.fr) of [Hexanet](http://www.hexanet.fr/).

0 commit comments

Comments
 (0)