Skip to content

Commit

Permalink
Merge pull request #2 from shahariaazam/symfony-4.x-quickfix
Browse files Browse the repository at this point in the history
Symfony 4.x quickfix
  • Loading branch information
tomas7777 authored Jan 18, 2021
2 parents 3f5d320 + e792d5b commit ad9ba7d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ 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.2
### Added
- Deprecated \Symfony\Component\DependencyInjection\DefinitionDecorator class removed and
used \Symfony\Component\DependencyInjection\ChildDefinition

## 1.0.1
### Added
- added support for Symfony 4.x
Expand Down
6 changes: 3 additions & 3 deletions src/DependencyInjection/Security/Factory/BearerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Paysera\BearerAuthenticationBundle\DependencyInjection\Security\Factory;

use Symfony\Component\DependencyInjection\ChildDefinition;
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\DefinitionDecorator;
use Symfony\Component\Config\Definition\Builder\NodeDefinition;
use Symfony\Bundle\SecurityBundle\DependencyInjection\Security\Factory\SecurityFactoryInterface;

Expand All @@ -21,14 +21,14 @@ public function create(
$container
->setDefinition(
$providerId,
new DefinitionDecorator('paysera_bearer_authentication.security_authentication_provider.bearer_provider')
new ChildDefinition('paysera_bearer_authentication.security_authentication_provider.bearer_provider')
)
->replaceArgument(0, new Reference($userProvider));

$listenerId = 'security.authentication.listener.bearer.'.$id;
$listener = $container->setDefinition(
$listenerId,
new DefinitionDecorator('paysera_bearer_authentication.listener.bearer_listener')
new ChildDefinition('paysera_bearer_authentication.listener.bearer_listener')
);

return [$providerId, $listenerId, $defaultEntryPoint];
Expand Down

0 comments on commit ad9ba7d

Please sign in to comment.