Skip to content

Commit 2ddcdcf

Browse files
committed
composer.json for Symfony >= 4.0
1 parent b733f4c commit 2ddcdcf

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -20,31 +20,31 @@ Symfony bundle for handling Mailjet API V3 using this wrapper: <https://github.c
2020

2121
## Setup
2222

23-
Add bundle to your project:
24-
25-
```bash
26-
composer require mailjet/mailjet-bundle
27-
```
28-
29-
Add `Mailjet\MailjetBundle\MailjetBundle` to your `AppKernel.php`:
23+
Add `Mailjet\MailjetBundle\MailjetBundle` to your `bundles.php`:
3024

3125
```php
3226
$bundles = [
3327
// ...
34-
new Mailjet\MailjetBundle\MailjetBundle(),
28+
Mailjet\MailjetBundle\MailjetBundle::class => ['all' => true]
3529
];
3630
```
3731

3832
## Minimal Configuration
3933

40-
In your `config.yml`:
34+
In your `config.yml` add:
4135

4236
```yaml
4337
mailjet:
4438
api_key: "%mailjet.api_key%"
4539
secret_key: "%mailjet.secret_key%"
4640
```
4741
42+
Add bundle to your project:
43+
44+
```bash
45+
composer require mailjet/mailjet-bundle
46+
```
47+
4848
## ToDo
4949

5050
* More unit tests

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@
3232
"require": {
3333
"php": ">=5.6",
3434
"mailjet/mailjet-apiv3-php": "^1.2",
35-
"mailjet/mailjet-swiftmailer": "^1.0"
35+
"mailjet/mailjet-swiftmailer": "dev-develop"
3636
},
3737
"require-dev": {
3838
"phpspec/phpspec": "~2@dev",
39-
"symfony/symfony": "~2.7 | ~3.0"
39+
"symfony/symfony": "~4.0 | ~4.1"
4040
},
4141
"config": {
4242
"bin-dir": "bin"

0 commit comments

Comments
 (0)