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