Example #1
0
 /**
  * @param int $keyId
  * @param bool $refreshCache
  */
 public function deleteKey($keyId, $refreshCache = false)
 {
     if (empty($keyId)) {
         throw new InvalidArgumentException("Empty key id passed");
     }
     $this->valueDao->deleteByKeyId($keyId);
     $this->keyDao->deleteById($keyId);
     if ($refreshCache) {
         $this->generateCacheForAllActiveLanguages();
     }
 }