Skip to content

Commit

Permalink
Merge pull request #1 from shahariaazam/support-symfony-4.x
Browse files Browse the repository at this point in the history
Added support for Symfony 4.x
  • Loading branch information
tomas7777 authored Jan 8, 2021
2 parents 9db1160 + 1024b9b commit 3f5d320
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## 1.0.1
### Added
- added support for Symfony 4.x

## 1.0.0
### Changed
- `\Paysera\BearerAuthenticationBundle\Listener\BearerListener` not does not return 403 response after failing to authenticate user
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"require": {
"php": ">=5.5",
"symfony/symfony": "^2.8 || ^3.0",
"symfony/symfony": "^2.8 || ^3.0 || ^4.0",
"paysera/lib-dependency-injection": "^1.0"
}
}
7 changes: 5 additions & 2 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ class Configuration implements ConfigurationInterface
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('paysera_bearer_authentication');
$treeBuilder = new TreeBuilder('paysera_bearer_authentication');
$rootNode = method_exists($treeBuilder, 'getRootNode')
? $treeBuilder->getRootNode()
: $treeBuilder->root('paysera_bearer_authentication')
;

// Here you should define the parameters that are allowed to
// configure your bundle. See the documentation linked above for
Expand Down

0 comments on commit 3f5d320

Please sign in to comment.