[ 'locks_dir' => __DIR__ . '/../../data/locks', ], 'dependencies' => [ 'factories' => [ Lock\Store\FlockStore::class => ConfigAbstractFactory::class, Lock\Store\RedisStore::class => ConfigAbstractFactory::class, Lock\LockFactory::class => ConfigAbstractFactory::class, LOCAL_LOCK_FACTORY => ConfigAbstractFactory::class, NamespacedStore::class => ConfigAbstractFactory::class, ], 'aliases' => [ 'lock_store' => EnvVars::REDIS_SERVERS->existsInEnv() ? 'redis_lock_store' : 'local_lock_store', 'redis_lock_store' => NamespacedStore::class, 'local_lock_store' => Lock\Store\FlockStore::class, ], 'delegators' => [ Lock\LockFactory::class => [ LoggerAwareDelegatorFactory::class, ], ], ], ConfigAbstractFactory::class => [ Lock\Store\FlockStore::class => ['config.locks.locks_dir'], Lock\Store\RedisStore::class => [RedisFactory::SERVICE_NAME], NamespacedStore::class => [Lock\Store\RedisStore::class, 'config.cache.namespace'], Lock\LockFactory::class => ['lock_store'], LOCAL_LOCK_FACTORY => ['local_lock_store'], ], ];