我无法弄清楚如何使用另一个缓存服务来使用WsseAuthentication存储我的随机数。文档对我来说不清楚。任何人都可以帮我设置我的随机数缓存以便与Redis一起使用吗?
目前,我知道如何添加新的nonce缓存服务ID,如下所示:
firewalls:
#...
wsse_secured:
#...
wsse:
#...
nonce_cache_service_id: cache_nonces
我知道如何创建此服务ID:
services:
cache_nonces:
class: Doctrine\Common\Cache\RedisCache
arguments: ???
但我不知道要给出什么样的论据。当我使用RedisCache时,它需要一个Redis对象,我不知道从哪里获取这个对象并将其添加到参数中。
答案 0 :(得分:0)
只需删除“arguments:”,类Doctrine \ Common \ Cache \ RedisCache https://github.com/doctrine/cache/blob/master/lib/Doctrine/Common/Cache/RedisCache.php没有构造函数,因此不应该使用“arguments”传递任何变量