Skip to content

Commit ddf073a

Browse files
committed
Feat: add support for Symfony 6.* & php 8.*
1 parent 2a0f468 commit ddf073a

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

composer.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,18 @@
3030
}
3131
},
3232
"require": {
33-
"php": ">=7.1.3",
33+
"php": ">=8.0",
3434
"mailjet/mailjet-apiv3-php": "^1.2",
3535
"mailjet/mailjet-swiftmailer": "^2.0",
36-
"symfony/config": "^4.4|^5.0",
37-
"symfony/console": "^4.4|^5.0",
38-
"symfony/dependency-injection": "^4.4|^5.0",
39-
"symfony/event-dispatcher": "^4.4|^5.0",
40-
"symfony/framework-bundle": "^4.4|^5.0",
41-
"symfony/http-foundation": "^4.4|^5.0",
42-
"symfony/http-kernel": "^4.4|^5.0",
43-
"symfony/routing": "^4.4|^5.0",
44-
"symfony/yaml": "^4.4|^5.0"
36+
"symfony/config": "^6.*|^5.0",
37+
"symfony/console": "^6.*|^5.0",
38+
"symfony/dependency-injection": "^6.*|^5.0",
39+
"symfony/event-dispatcher": "^6.*|^5.0",
40+
"symfony/framework-bundle": "^6.*|^5.0",
41+
"symfony/http-foundation": "^6.*|^5.0",
42+
"symfony/http-kernel": "^6.*|^5.0",
43+
"symfony/routing": "^6.*|^5.0",
44+
"symfony/yaml": "^6.*|^5.0"
4545
},
4646
"require-dev": {
4747
"phpspec/phpspec": "^5.1|^6.0|^7.0"

src/DependencyInjection/MailjetExtension.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function load(array $configs, ContainerBuilder $container)
5454
$loader->load('services.yml');
5555
}
5656

57-
public function getAlias()
57+
public function getAlias() : string
5858
{
5959
return 'mailjet';
6060
}

src/MailjetBundle.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
namespace Mailjet\MailjetBundle;
44

5+
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
56
use Symfony\Component\HttpKernel\Bundle\Bundle;
67
use Mailjet\MailjetBundle\DependencyInjection\MailjetExtension;
78

89
class MailjetBundle extends Bundle
910
{
10-
public function getContainerExtension()
11+
public function getContainerExtension(): ?ExtensionInterface
1112
{
1213
return new MailjetExtension();
1314
}

0 commit comments

Comments
 (0)