[ 'locks_dir' => __DIR__ . '/../../data/locks', ], 'dependencies' => [ 'factories' => [ Lock\Store\FlockStore::class => ConfigAbstractFactory::class, Lock\Store\RedisStore::class => ConfigAbstractFactory::class, Lock\Factory::class => ConfigAbstractFactory::class, ], 'aliases' => [ // With this config, a user could alias 'lock_store' => 'redis_lock_store' to override the default 'lock_store' => Lock\Store\FlockStore::class, 'redis_lock_store' => Lock\Store\RedisStore::class, ], 'delegators' => [ Lock\Store\RedisStore::class => [ RetryLockStoreDelegatorFactory::class, ], Lock\Factory::class => [ LoggerAwareDelegatorFactory::class, ], ], ], ConfigAbstractFactory::class => [ Lock\Store\FlockStore::class => ['config.locks.locks_dir'], Lock\Store\RedisStore::class => [RedisFactory::SERVICE_NAME], Lock\Factory::class => ['lock_store'], ], ];