protected function runComposer($path, $command)
{
$composer = $this->findComposer();
$process = new Process($composer . ' ' . $command, $path, null, null, null);
$output = $this->getOutput();
return $process->run(function ($type, $line) use($output) {
$output->write($line);
});
}