From c921a8884eecbe7c813eb0332634efb613c90d84 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 21 Dec 2011 15:57:39 +0100 Subject: [PATCH] Adjust operation output, fixes #166 --- src/Composer/DependencyResolver/Operation/InstallOperation.php | 2 +- .../DependencyResolver/Operation/UninstallOperation.php | 2 +- src/Composer/DependencyResolver/Operation/UpdateOperation.php | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Composer/DependencyResolver/Operation/InstallOperation.php b/src/Composer/DependencyResolver/Operation/InstallOperation.php index 98e8d8de6..0a16629f4 100644 --- a/src/Composer/DependencyResolver/Operation/InstallOperation.php +++ b/src/Composer/DependencyResolver/Operation/InstallOperation.php @@ -61,6 +61,6 @@ class InstallOperation extends SolverOperation */ public function __toString() { - return 'Installing '.$this->package; + return 'Installing '.$this->package->getPrettyName().' ('.$this->package->getPrettyVersion().')'; } } diff --git a/src/Composer/DependencyResolver/Operation/UninstallOperation.php b/src/Composer/DependencyResolver/Operation/UninstallOperation.php index ddc8190e5..018df26c5 100644 --- a/src/Composer/DependencyResolver/Operation/UninstallOperation.php +++ b/src/Composer/DependencyResolver/Operation/UninstallOperation.php @@ -61,6 +61,6 @@ class UninstallOperation extends SolverOperation */ public function __toString() { - return 'Uninstalling '.$this->package; + return 'Uninstalling '.$this->package->getPrettyName().' ('.$this->package->getPrettyVersion().')'; } } diff --git a/src/Composer/DependencyResolver/Operation/UpdateOperation.php b/src/Composer/DependencyResolver/Operation/UpdateOperation.php index ccaaf82ec..1e802793c 100644 --- a/src/Composer/DependencyResolver/Operation/UpdateOperation.php +++ b/src/Composer/DependencyResolver/Operation/UpdateOperation.php @@ -74,6 +74,7 @@ class UpdateOperation extends SolverOperation */ public function __toString() { - return 'Updating '.$this->initialPackage.' to '.$this->targetPackage; + return 'Updating '.$this->initialPackage->getPrettyName().' ('.$this->initialPackage->getPrettyVersion().') to '. + $this->targetPackage->getPrettyName(). '('.$this->targetPackage->getPrettyVersion().')'; } }