php - symfony write process output to file -



php - symfony write process output to file -

how write output of asynchronous process file. have next code in phpunit bootstrap file:

$command = 'exec php ' . $kernel->getrootdir() . '/console ' . 'xxx:servicebus:start-services --env=' . $kernel->getenvironment(); $servicebuscommand = new symfony\component\process\process($command); $servicebuscommand->start();

obviously code starts servicebus instance listens incoming requests server. 1 time tests ran, requests go servicebus , stuck there. need see output of start servicebus command see went wrong.

any thought how write output of process log file?

you need phone call $servicebuscommand->getincrementalerroroutput() , $servicebuscommand->getincrementaloutput() regularly.

php symfony2 ubuntu phpunit

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -