Skip to content

Commit

Permalink
Support modern Symfony versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mcg-web committed Oct 7, 2022
1 parent 06ae300 commit 518017c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/vendor
/composer.lock
4 changes: 2 additions & 2 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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
============
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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": {
Expand Down

0 comments on commit 518017c

Please sign in to comment.