コード例 #1
0
ファイル: Cli.php プロジェクト: AOEpeople/TYPO3-Feature-Flag
 /**
  * @throws RuntimeException
  */
 private function flagEntries()
 {
     if ($this->isSchedulerInstalled()) {
         $taskUid = $this->getSchedulerTaskUid();
         $task = $this->scheduler->fetchTask($taskUid);
         if ($this->scheduler->isValidTaskObject($task)) {
             $this->scheduler->executeTask($task);
         } else {
             throw new RuntimeException('task-object of feature-flag-task is not valid!');
         }
     }
 }