After a user submits a form, I want to render a view file, and right after that I want to initiate a background task to process five MS Excel files (each may have up to 2000 row
I am a bit late to the game, but I just found a solution for this problem using the fromShellCommandLine() method:
use Symfony\Component\Process\Process;
Process::fromShellCommandline('/usr/bin/php /var/www/bin/console hello:world')->start();
This way it is possible to start a new process/run a command asynchronously.