Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates for new versions of Symfony and Doctrine #4

Merged
merged 3 commits into from
Jan 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,13 @@ class Configuration implements ConfigurationInterface
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('innobyte_token');
if (method_exists(TreeBuilder::class, 'getRootNode')) {
$treeBuilder = new TreeBuilder('innobyte_token');
$rootNode = $treeBuilder->getRootNode();
} else {
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('innobyte_token');
}

$rootNode
->children()
Expand Down
3 changes: 3 additions & 0 deletions Resources/config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ services:
# shorthand name
innobyte_token:
alias: innobyte_token.token

Innobyte\TokenBundle\Service\TokenService:
alias: innobyte_token.token
8 changes: 5 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
},
"require": {
"php": ">=5.5.0",
"symfony/symfony": ">=2.7",
"doctrine/doctrine-bundle": "~1.4"
"symfony/config": "~2.3|~3.0|~4.0|~5.0",
"symfony/dependency-injection": "~2.3|~3.0|~4.0|~5.0",
"symfony/http-kernel": "~2.3|~3.0|~4.0|~5.0",
"doctrine/doctrine-bundle": "~1.4 | ~2.0"
},
"autoload": {
"psr-0": { "Innobyte\\TokenBundle": "" }
Expand All @@ -25,6 +27,6 @@
"email": "sorin.dumitrescu@innobyte.com"
}
],
"version": "2.1.1",
"version": "2.1.2",
"minimum-stability": "dev"
}