Created delegator factory that injects logger on services implementing LoggerAware, and used it for locks factory

This commit is contained in:
Alejandro Celaya
2019-08-08 13:42:14 +02:00
parent 8db9962282
commit 38016b3ba3
3 changed files with 79 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ declare(strict_types=1);
use Shlinkio\Shlink\Common\Cache\RedisFactory;
use Shlinkio\Shlink\Common\Lock\RetryLockStoreDelegatorFactory;
use Shlinkio\Shlink\Common\Logger\LoggerAwareDelegatorFactory;
use Symfony\Component\Lock;
use Zend\ServiceManager\AbstractFactory\ConfigAbstractFactory;
@@ -27,6 +28,9 @@ return [
Lock\Store\RedisStore::class => [
RetryLockStoreDelegatorFactory::class,
],
Lock\Factory::class => [
LoggerAwareDelegatorFactory::class,
],
],
],