contributte / doctrine-orm

:fire: Well-integrated Doctrine ORM for Nette Framework

Home Page:https://contributte.org/packages/nettrine/orm.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Impossible to set own second level cache

paveltizek opened this issue · comments

Cannot set own cache configuration factory as service like this:

nettrine.orm.cache:
secondLevelCache: @redisCacheConfigurationFactory::create(%tempDir%)

services:
redisCacheConfigurationFactory: Eshop\Core\Cache\RedisCacheConfigurationFactory(%redis.host%, %redis.port%)

I have to create next service so working result is

services: redisCacheConfigurationFactory: Eshop\Core\Cache\RedisCacheConfigurationFactory(%redis.host%, %redis.port%) redisCacheConfiguration: @redisCacheConfigurationFactory::create(%tempDir%)

nettrine.orm.cache: secondLevelCache: @redisCacheConfiguration

Yep, that's seems correct. Will be fixed in some new version.