Skip to content

Commit e4f6c91

Browse files
authored
Merge pull request #4 from moufmouf/symfony5
Adding compatibility with Symfony 5
2 parents 32dd838 + f602efa commit e4f6c91

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

DependencyInjection/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ class Configuration implements ConfigurationInterface
1010
{
1111
public function getConfigTreeBuilder()
1212
{
13-
$treeBuilder = new TreeBuilder();
14-
$rootNode = $treeBuilder->root('tdbm');
13+
$treeBuilder = new TreeBuilder('tdbm');
14+
$rootNode = $treeBuilder->getRootNode();
1515

1616
$rootNode
1717
->children()

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323
"require" : {
2424
"php" : ">=7.1",
2525
"thecodingmachine/tdbm" : "~5.1.0",
26-
"doctrine/doctrine-bundle": "^1.9",
26+
"doctrine/doctrine-bundle": "^1.9 || ^2",
2727
"doctrine/orm": "^1 || ^2"
2828
},
2929
"require-dev": {
3030
"roave/security-advisories": "dev-master",
31-
"symfony/security-bundle": "^4.1.9",
32-
"symfony/yaml": "^4.1.9",
31+
"symfony/security-bundle": "^4.1.9 || ^5",
32+
"symfony/yaml": "^4.1.9 || ^5",
3333
"phpunit/phpunit": "^7.5.6",
34-
"phpstan/phpstan": "^0.11.4"
34+
"phpstan/phpstan-shim": "^0.11.4"
3535
},
3636
"scripts": {
3737
"phpstan": "phpstan analyse TdbmBundle.php DependencyInjection/ Resources/ -c phpstan.neon --level=7 --no-progress"

0 commit comments

Comments
 (0)