Esempio n. 1
0
 /**
  * Release key
  *
  * @param string $key
  * @return boolean
  * @throws \InvalidArgumentException
  */
 public function release($key)
 {
     $key = $this->string()->toUpper($key);
     if (!$this->dictionary->has($key)) {
         return true;
     }
     $entity = $this->dictionary->get($key);
     $this->dictionary->delete($key);
     return $this->adaptor()->release($entity);
 }