Questions tagged [symfony-process]

Symfony Process component executes commands in sub-processes.

Symfony Process is one of the Symfony components that is bundled with Symfony but can also be used separately.

It allows to run sub-processes, view real-time process output, run them asynchronously, kill them with nice API.
Also it can be used to run PHP code in isolation.

Documentation:
http://symfony.com/doc/current/components/process.html

Install using Composer:
composer require symfony/process

Homepage:
https://github.com/symfony/process

102 questions
0
votes
1 answer

Signal being forwarded to children for the symfony process component

I'm trying to write a small script that will manage a series of background processes using the symfony component Process (http://symfony.com/doc/current/components/process.html). For this to work correctly i would like to handle signals sent to the…
Nasso
  • 75
  • 11
0
votes
1 answer

Can't install laravel packages, symfony/process has wrong version

I tried to install some packages that need a 2.* version but the new laravel version uses 3.* Is there any way to "downgrade" the package or do I have to wait until the packages are updated to the latest version?
cre8
  • 13,012
  • 8
  • 37
  • 61
0
votes
2 answers

Process Symfony component doesn't start in background

I show you below some dummies examples about I want to do. I need to start a background process using symfony2. This function is in a Controller and I would like to return the response while the command line is running. If I do what I put below it's…
0
votes
1 answer

Invalid JSON with json_encode and shell_exec

I'm using Symfony's console component to write some command line tools, one of which uses WP-CLI to set up a WordPress site. Specifically using wp option update I'm running into issues with both JSON and quotes. For example, running something…
Ethan C
  • 1,408
  • 1
  • 14
  • 26
0
votes
1 answer

Symfony Process calling php from commandline causes "General error" only on Windows

I was given a lot of legacy code using Symfony2, which was running on Linux, but I need to start it on Windows. Almost everything is working (XAMPP), but I have problem with one thing. During the user registration, sending mails was taking too long…
WRonX
  • 161
  • 3
  • 15
0
votes
1 answer

Segmentation violation on symfony 2.6.6 process component

When I try to run a command on a sub-process created by ProcessBuilder, i get segmentation violation. [Symfony\Component\Process\Exception\RuntimeException] The process has been signaled with signal "11". But this doesn't happen upto…
0
votes
1 answer

Laravel\Symfony Process component fails to start new process

I'm using the Process component provided by Symfony in my Laravel project: http://symfony.com/doc/current/components/process.html. Here is my code: $process = new Process('dir'); try { $process->mustRun(); print $process->getOutput(); }…
none32
  • 515
  • 1
  • 5
  • 21
0
votes
2 answers

Call controller/action in Console Commend

I want to import data from LinkedIn and save them in my database. I want this run at background. So I create a console command. But how could I call a controller/action in a console command so that the import and save transaction could run at the…
史京迪
  • 481
  • 2
  • 6
  • 19
-1
votes
1 answer

Changing Symfony\Component\Process code in laravel

I have found a problem in the symfony package and I have a very little fix I want to implement. How to change it with my own code and implement it globally in my laravel.
Fendy Harianto
  • 267
  • 1
  • 8
-1
votes
1 answer

Laravel process parameter escape

I'm running a process using Laravel which relies on Symfony Process component as follow. $process= new Process(['binary', $param1, $param2]); $process->setTimeout(3600); $process->run(); It works fine excepted when a parameter contains special…
Arkaik
  • 852
  • 2
  • 19
  • 39
-1
votes
1 answer

Controller Action From Process

Symfony 2.8 Being in a Service called from a Command, Is there any way to execute/invoke a Controller Action as a Process Object? Or do I have to covert that Controller Action into a Command in order to be called by a Process? I need to execute…
NorthmaN
  • 105
  • 2
  • 11
-2
votes
1 answer

Symfony Process - Command not found

I'm trying to execute ffmpeg commands using Symfony Process Component but command is not being processed. What am I doing wrong? I get the error The command "'ffmpeg -i [...........]' failed. Exit Code: 127(Command not found)"
s_m94
  • 35
  • 3
  • 10
1 2 3 4 5 6
7