Skip to content

Commit 62204c6

Browse files
committed
Update README syntax
1 parent 3165f8c commit 62204c6

File tree

1 file changed

+25
-21
lines changed

1 file changed

+25
-21
lines changed

README.md

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,41 @@ to make it compatiable with SwiftMailer.
55

66
## Installation Example
77

8-
parameters.yml.dist
9-
```
10-
parameters:
11-
sendgrid_api_key: PleaseEnterSendGridApiKey
12-
```
8+
`composer require expertcoder/swiftmailer-send-grid-bundle`
139

14-
config.yml
15-
```
16-
swiftmailer:
17-
transport: expertcoder_swift_mailer.send_grid.transport
18-
19-
expert_coder_swiftmailer_send_grid:
20-
api_key: %sendgrid_api_key%
21-
categories: [my_app] # optional, will be added to all mails sent
22-
```
10+
**or**
11+
12+
*composer.json*
13+
```json
14+
"require": {
15+
...
16+
"expertcoder/swiftmailer-send-grid-bundle": "~1.0"
17+
}
2318

24-
AppKernel.php
2519
```
20+
21+
*AppKernel.php*
22+
```php
2623
$bundles = [
27-
.......
24+
// ...
2825
new ExpertCoder\Swiftmailer\SendGridBundle\ExpertCoderSwiftmailerSendGridBundle(),
2926
];
3027
```
3128

32-
composer.json
29+
*parameters.yml.dist*
30+
```yml
31+
parameters:
32+
sendgrid_api_key: PleaseEnterSendGridApiKey
3333
```
34-
"require": {
35-
.....
36-
"expertcoder/swiftmailer-send-grid-bundle": "@dev"
37-
}
3834
35+
*config.yml*
36+
```yml
37+
swiftmailer:
38+
transport: expertcoder_swift_mailer.send_grid.transport
39+
40+
expert_coder_swiftmailer_send_grid:
41+
api_key: %sendgrid_api_key%
42+
categories: [my_category] # optional, will be added to all mails sent
3943
```
4044
4145
## Important !

0 commit comments

Comments
 (0)