예제 #1
0
 /**
  * @param string[] $with
  * @throws IoReadException
  */
 private function updateStorage($with = [])
 {
     $data = [];
     foreach ($this->processes as $processAlias => $process) {
         $data[$processAlias] = $process;
     }
     $data = array_merge($data, $with);
     $this->fs->write($this->fsPath, json_encode($data));
 }