From 14fdd4384ade555802417dff094eebe75ffd2db3 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sun, 5 Jun 2011 22:09:30 +0200 Subject: [PATCH] Better reporting during installation --- src/Composer/Command/InstallCommand.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Composer/Command/InstallCommand.php b/src/Composer/Command/InstallCommand.php index a3e92f2f5..4f3c70c96 100644 --- a/src/Composer/Command/InstallCommand.php +++ b/src/Composer/Command/InstallCommand.php @@ -52,6 +52,7 @@ class InstallCommand $downloader = $composer->getDownloader($package->getSourceType()); $installer = $composer->getInstaller($package->getType()); $lock[$name] = $installer->install($package, $downloader); + echo '> '.$name.' installed'.PHP_EOL; } $this->storeLockFile($lock); @@ -71,6 +72,7 @@ class InstallCommand protected function storeLockFile(array $content) { - file_put_contents('composer.lock', json_encode($content)); + file_put_contents('composer.lock', json_encode($content)."\n"); + echo '> composer.lock dumped'.PHP_EOL; } } \ No newline at end of file