Exemplo n.º 1
0
 /**
  * @param $flag
  * @param $enabled
  * @throws Tx_FeatureFlag_Service_Exception_FeatureNotFound
  * @throws \TYPO3\CMS\Extbase\Persistence\Exception\IllegalObjectTypeException
  */
 public function updateFeatureFlag($flag, $enabled)
 {
     $flagModel = $this->getFeatureFlag($flag);
     $flagModel->setEnabled($enabled);
     $this->featureFlagRepository->update($flagModel);
     $this->persistenceManager->persistAll();
     $this->cachedFlags[$flag] = $flagModel;
 }