From f022a06edf819f740d7ade6217c1d5214bf0b9af Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Mon, 21 Oct 2013 20:57:21 -0400 Subject: [PATCH] renamed composer installation type. --- extensions/composer/yii/composer/Installer.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/extensions/composer/yii/composer/Installer.php b/extensions/composer/yii/composer/Installer.php index 6fcfeff..8b7363c 100644 --- a/extensions/composer/yii/composer/Installer.php +++ b/extensions/composer/yii/composer/Installer.php @@ -31,7 +31,7 @@ class Installer extends LibraryInstaller */ public function supports($packageType) { - return $packageType === 'yii-extension'; + return $packageType === 'yii2-extension'; } /** @@ -65,7 +65,7 @@ class Installer extends LibraryInstaller protected function addPackage(PackageInterface $package) { $extension = [ - 'name' => $package->getPrettyName(), + 'name' => $package->getName(), 'version' => $package->getVersion(), ]; @@ -76,14 +76,14 @@ class Installer extends LibraryInstaller } $extensions = $this->loadExtensions(); - $extensions[$package->getUniqueName()] = $extension; + $extensions[$package->getName()] = $extension; $this->saveExtensions($extensions); } protected function removePackage(PackageInterface $package) { $packages = $this->loadExtensions(); - unset($packages[$package->getUniqueName()]); + unset($packages[$package->getName()]); $this->saveExtensions($packages); }