Skip to content
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.

Issues with Process class and fromShellCommandline method in Laravel 8 #101

Open
joalvm opened this issue Mar 17, 2023 · 0 comments
Open

Comments

@joalvm
Copy link

joalvm commented Mar 17, 2023

Hi there,

I've been using the laravel-async-queue library in my Laravel 8 project, and I've encountered an issue with the Process class. Specifically, the startProcess method of Barryvdh\Queue\AsyncQueue appears to be using the new Process([$command], $cwd) syntax, which doesn't seem to work as intended. The process never executes when called this way.

However, I found that when I changed the code to use the fromShellCommandline method, the process executes successfully in the background. Here's the working code:

$process = Process::fromShellCommandline($command, $cwd, $_ENV);
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant