Skip to content

Commit

Permalink
Migrated code from symfony/process to react/child-process
Browse files Browse the repository at this point in the history
  • Loading branch information
gplanchat committed Nov 21, 2023
1 parent 9e24b6f commit cb9c179
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Adapter/Composer.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public function log($level, $message, array $context = []): void

private function execute(Process $process, float $timeout = 300): void
{
$process->start();

$process->stdout->on('data', function ($chunk) {
$this->logger->debug($chunk);
});
Expand All @@ -39,7 +41,6 @@ private function execute(Process $process, float $timeout = 300): void
$deferred->resolve();
});

$process->start();
$this->logger->notice(sprintf('Starting process "%s".', $process->getCommand()));

await(timeout($deferred->promise(), $timeout));
Expand Down

0 comments on commit cb9c179

Please sign in to comment.