public function __construct(CacheProvider $cacheProvider, User $user, CacheController $cacheController) { /** * @var \Core\Cache\CacheInterface */ $this->cache = $cacheProvider->getCache(); $this->user = $user; $this->cacheEnabled = $cacheController->isCacheEnabled(); }
public function __construct(CacheProvider $cacheProvider, Group $group, CacheController $cacheController) { /** * @var \Core\Cache\CacheInterface */ $this->cache = $cacheProvider->getCache(); $this->group = $group; $this->cacheEnabled = $cacheController->isCacheEnabled(); }