diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..de4a392 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/vendor +/composer.lock diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 461fe3b..b9f9853 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -17,8 +17,8 @@ class Configuration implements ConfigurationInterface */ public function getConfigTreeBuilder() { - $treeBuilder = new TreeBuilder(); - $rootNode = $treeBuilder->root('fkr_simple_pie'); + $treeBuilder = new TreeBuilder('fkr_simple_pie'); + $rootNode = \method_exists($treeBuilder, 'getRootNode') ? $treeBuilder->getRootNode() : $treeBuilder->root('fkr_simple_pie'); $rootNode ->children() diff --git a/README.md b/README.md index 225e073..5530624 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ FkrSimplePieBundle ================== -Integrates [SimplePie](https://github.com/simplepie/simplepie) RSS Parser into Symfony2 and setting up caching to the symfony2 cache folder. +Integrates [SimplePie](https://github.com/simplepie/simplepie) RSS Parser into Symfony and setting up caching to the symfony cache folder. Installation ============ diff --git a/composer.json b/composer.json index f732274..6f2529a 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "fkr/simplepie-bundle", "type": "symfony-bundle", - "description": "Integrates SimplePie into Symfony2", + "description": "Integrates SimplePie into Symfony", "keywords": ["SimplePie", "Symfony Bundle", "RSS", "ATOM", "Feed"], "homepage": "https://github.com/fkrauthan/FkrSimplePieBundle", "license": "MIT", @@ -13,7 +13,7 @@ ], "require": { "php": ">=5.3.2", - "symfony/framework-bundle": "~2.6|~3.0", + "symfony/framework-bundle": "~2.6|~3.0|~4.0|~5.0|~6.0", "simplepie/simplepie": "~1.3" }, "autoload": {