/** * Stores the restore config as yml and by given name defined in job * * @param RestoreJob $job * @param array $data * @author Daniel Wendlandt */ public function storeRestoreConfig(RestoreJob $job, array $data) { $filepath = $job->getPath() . DIRECTORY_SEPARATOR . self::DIR_CONFIG . DIRECTORY_SEPARATOR . $job->getConfigName() . self::FILE_EXTENSION_CONFIG; $this->filesytsem->dumpFile($filepath, $this->yamlDumper->dump($data, 5)); }
/** * Stores jobs stats into json format in meta files * * @param RestoreJob $job * @param JobStats $jobStats * @param OutputInterface $output * @author Daniel Wendlandt */ private function storeJobStats(RestoreJob $job, JobStats $jobStats, OutputInterface $output) { $this->filesystem->storeRestoreJobStats($job->getPath(), $jobStats); $output->writeln('<info>*** Stored job-stats to file ***</info>' . PHP_EOL); }