Skip to content

Commit 2dc59ec

Browse files
authored
Compatibility with Symfony 7 components (#13)
1 parent ad3d86f commit 2dc59ec

File tree

3 files changed

+6
-17
lines changed

3 files changed

+6
-17
lines changed

.gitignore

-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,2 @@
1-
bin/
2-
conf/
3-
logs/
4-
sessions/
5-
tmp/
6-
node_modules/
7-
var/
8-
!var/cache/.keepme
91
vendor/
102
composer.lock
11-
phpunit.xml

DependencyInjection/WebfactoryResponsiveImageExtension.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,18 @@
22

33
namespace Webfactory\ResponsiveImageBundle\DependencyInjection;
44

5-
use Symfony\Component\Config\FileLocator;
65
use Symfony\Component\DependencyInjection\ContainerBuilder;
76
use Symfony\Component\DependencyInjection\Extension\Extension;
87
use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface;
9-
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
108
use Symfony\Component\Yaml\Yaml;
119

1210
class WebfactoryResponsiveImageExtension extends Extension implements PrependExtensionInterface
1311
{
14-
public function load(array $configs, ContainerBuilder $container)
12+
public function load(array $configs, ContainerBuilder $container): void
1513
{
1614
}
1715

18-
public function prepend(ContainerBuilder $container)
16+
public function prepend(ContainerBuilder $container): void
1917
{
2018
$bundles = $container->getParameter('kernel.bundles');
2119

composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"description": "Symfony bundle for responsive images",
44
"license": "MIT",
55
"require": {
6-
"php": "7.2.*|7.3.*|7.4.*|8.0.*|8.1.*",
6+
"php": "^7.2|^8.0",
77
"jbouzekri/phumbor-bundle": "^2.2.0|^3.0",
88
"twig/twig": "^1.35.4|^2.0|^3.0",
9-
"symfony/config": "^3.4.14|^4.4.1|^5.0|^6.0",
10-
"symfony/dependency-injection": "^3.4.14|^4.4.1|^5.0|^6.0",
11-
"symfony/yaml": "^3.4.14|^4.4.1|^5.0|^6.0"
9+
"symfony/config": "^3.4.14|^4.4.1|^5.0|^6.0|^7.0",
10+
"symfony/dependency-injection": "^3.4.14|^4.4.1|^5.0|^6.0|^7.0",
11+
"symfony/yaml": "^3.4.14|^4.4.1|^5.0|^6.0|^7.0"
1212
},
1313
"autoload": {
1414
"psr-4": {

0 commit comments

Comments
 (0)