Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function removeExtraKey($key)
 {
     if (!$this->rootModuleFile->hasExtraKey($key)) {
         return;
     }
     $previousValue = $this->rootModuleFile->getExtraKey($key);
     $this->rootModuleFile->removeExtraKey($key);
     try {
         $this->jsonStorage->saveRootModuleFile($this->rootModuleFile);
     } catch (Exception $e) {
         $this->rootModuleFile->setExtraKey($key, $previousValue);
         throw $e;
     }
 }