Skip to content

Commit

Permalink
fix: escape backslashes
Browse files Browse the repository at this point in the history
  • Loading branch information
rugbymauri committed Aug 10, 2023
1 parent 46a782a commit 358d14c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Manager/ExecutionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function getPendingExecution(CronInterface $cronJob)
protected function schedule(CronInterface $cronJob): void
{
$this->logger->info(sprintf('Scheduling execution of %s', $cronJob::class));
$process = new Process([$this->projectDir . '/bin/console', 'whatwedo:cron:execute', $cronJob::class, '-e', $this->environment]);
$process = new Process([$this->projectDir . '/bin/console', 'whatwedo:cron:execute', str_replace('\\', '\\\\', $cronJob::class), '-e', $this->environment]);
$process->run();
$this->logger->debug(sprintf('Helper process running with PID %d', $process->getPid()));
}
Expand Down

0 comments on commit 358d14c

Please sign in to comment.