public function execute(ConsumerEvent $event, $directory)
{
$output = null;
$workingDirectory = $this->workingTempPath . '/' . $directory;
$process = $this->runProcess(sprintf('%s show --installed', $this->composerBinPath), $workingDirectory, $output);
if ($process->isSuccessful()) {
$this->triggerComposerInstalled($event, array('message' => $process->getOutput()));
}
return 0;
}