Skip to content

Commit

Permalink
Merge pull request #2 from brnck/master
Browse files Browse the repository at this point in the history
Change setArgument to replaceArgument
  • Loading branch information
vbartusevicius authored Dec 12, 2018
2 parents 6f2235a + bc9ebe5 commit 89e520a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
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](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 0.2.1
### Changed
- `PayseraLockExtension` Definition method **setArgument** is replaced to **replaceArgument** so bundle will work properly on Symfony ^2.8

## 0.2.0
### Changed
- `LockManager` now takes and return `LockInterface` instead of `Lock` which implements it
Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/PayseraLockExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ public function load(array $configs, ContainerBuilder $container)
private function configureLockStore(ContainerBuilder $container, array $config)
{
$storeDefinition = $container->getDefinition('paysera_lock.lock_store');
$storeDefinition->setArgument(0, new Reference($config['redis_client']));
$storeDefinition->replaceArgument(0, new Reference($config['redis_client']));
}
}

0 comments on commit 89e520a

Please sign in to comment.