Пример #1
0
 /**
  * Launches the given file in a background process.
  *
  * @param string $file
  * @param array $arguments
  */
 public function launch(LimeFile $file)
 {
     $executable = $file->getExecutable();
     $this->file = $file;
     $this->done = false;
     $this->input = $this->inputFactory->create($executable->getInputName(), $this->output);
     $this->process = new LimeProcess($executable, $file->getPath());
     $this->process->execute();
 }
Пример #2
0
 /**
  * Adds the file with the given path to the label.
  *
  * @param string $path
  */
 public function addFile(LimeFile $file)
 {
     $this->files[$file->getPath()] = $file;
 }