Skip to content

Commit 89e520a

Browse files
Merge pull request #2 from brnck/master
Change setArgument to replaceArgument
2 parents 6f2235a + bc9ebe5 commit 89e520a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## 0.2.1
8+
### Changed
9+
- `PayseraLockExtension` Definition method **setArgument** is replaced to **replaceArgument** so bundle will work properly on Symfony ^2.8
10+
711
## 0.2.0
812
### Changed
913
- `LockManager` now takes and return `LockInterface` instead of `Lock` which implements it

src/DependencyInjection/PayseraLockExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ public function load(array $configs, ContainerBuilder $container)
2626
private function configureLockStore(ContainerBuilder $container, array $config)
2727
{
2828
$storeDefinition = $container->getDefinition('paysera_lock.lock_store');
29-
$storeDefinition->setArgument(0, new Reference($config['redis_client']));
29+
$storeDefinition->replaceArgument(0, new Reference($config['redis_client']));
3030
}
3131
}

0 commit comments

Comments
 (0)