Mercurial > hg > isophonics-drupal-site
comparison vendor/composer/installers/src/Composer/Installers/Installer.php @ 12:7a779792577d
Update Drupal core to v8.4.5 (via Composer)
author | Chris Cannam |
---|---|
date | Fri, 23 Feb 2018 15:52:07 +0000 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
11:bfffd8d7479a | 12:7a779792577d |
---|---|
52 'lms' => 'LanManagementSystemInstaller', | 52 'lms' => 'LanManagementSystemInstaller', |
53 'laravel' => 'LaravelInstaller', | 53 'laravel' => 'LaravelInstaller', |
54 'lavalite' => 'LavaLiteInstaller', | 54 'lavalite' => 'LavaLiteInstaller', |
55 'lithium' => 'LithiumInstaller', | 55 'lithium' => 'LithiumInstaller', |
56 'magento' => 'MagentoInstaller', | 56 'magento' => 'MagentoInstaller', |
57 'majima' => 'MajimaInstaller', | |
57 'mako' => 'MakoInstaller', | 58 'mako' => 'MakoInstaller', |
58 'maya' => 'MayaInstaller', | 59 'maya' => 'MayaInstaller', |
59 'mautic' => 'MauticInstaller', | 60 'mautic' => 'MauticInstaller', |
60 'mediawiki' => 'MediaWikiInstaller', | 61 'mediawiki' => 'MediaWikiInstaller', |
61 'microweber' => 'MicroweberInstaller', | 62 'microweber' => 'MicroweberInstaller', |
62 'modulework' => 'MODULEWorkInstaller', | 63 'modulework' => 'MODULEWorkInstaller', |
64 'modx' => 'ModxInstaller', | |
63 'modxevo' => 'MODXEvoInstaller', | 65 'modxevo' => 'MODXEvoInstaller', |
64 'moodle' => 'MoodleInstaller', | 66 'moodle' => 'MoodleInstaller', |
65 'october' => 'OctoberInstaller', | 67 'october' => 'OctoberInstaller', |
66 'ontowiki' => 'OntoWikiInstaller', | 68 'ontowiki' => 'OntoWikiInstaller', |
67 'oxid' => 'OxidInstaller', | 69 'oxid' => 'OxidInstaller', |
68 'osclass' => 'OsclassInstaller', | 70 'osclass' => 'OsclassInstaller', |
71 'pxcms' => 'PxcmsInstaller', | |
69 'phpbb' => 'PhpBBInstaller', | 72 'phpbb' => 'PhpBBInstaller', |
70 'pimcore' => 'PimcoreInstaller', | 73 'pimcore' => 'PimcoreInstaller', |
71 'piwik' => 'PiwikInstaller', | 74 'piwik' => 'PiwikInstaller', |
72 'plentymarkets'=> 'PlentymarketsInstaller', | 75 'plentymarkets'=> 'PlentymarketsInstaller', |
73 'ppi' => 'PPIInstaller', | 76 'ppi' => 'PPIInstaller', |
77 'porto' => 'PortoInstaller', | 80 'porto' => 'PortoInstaller', |
78 'redaxo' => 'RedaxoInstaller', | 81 'redaxo' => 'RedaxoInstaller', |
79 'reindex' => 'ReIndexInstaller', | 82 'reindex' => 'ReIndexInstaller', |
80 'roundcube' => 'RoundcubeInstaller', | 83 'roundcube' => 'RoundcubeInstaller', |
81 'shopware' => 'ShopwareInstaller', | 84 'shopware' => 'ShopwareInstaller', |
85 'sitedirect' => 'SiteDirectInstaller', | |
82 'silverstripe' => 'SilverStripeInstaller', | 86 'silverstripe' => 'SilverStripeInstaller', |
83 'smf' => 'SMFInstaller', | 87 'smf' => 'SMFInstaller', |
84 'sydes' => 'SyDESInstaller', | 88 'sydes' => 'SyDESInstaller', |
85 'symfony1' => 'Symfony1Installer', | 89 'symfony1' => 'Symfony1Installer', |
86 'thelia' => 'TheliaInstaller', | 90 'thelia' => 'TheliaInstaller', |
118 return $installer->getInstallPath($package, $frameworkType); | 122 return $installer->getInstallPath($package, $frameworkType); |
119 } | 123 } |
120 | 124 |
121 public function uninstall(InstalledRepositoryInterface $repo, PackageInterface $package) | 125 public function uninstall(InstalledRepositoryInterface $repo, PackageInterface $package) |
122 { | 126 { |
123 if (!$repo->hasPackage($package)) { | 127 parent::uninstall($repo, $package); |
124 throw new \InvalidArgumentException('Package is not installed: '.$package); | 128 $installPath = $this->getPackageBasePath($package); |
125 } | 129 $this->io->write(sprintf('Deleting %s - %s', $installPath, !file_exists($installPath) ? '<comment>deleted</comment>' : '<error>not deleted</error>')); |
126 | |
127 $repo->removePackage($package); | |
128 | |
129 $installPath = $this->getInstallPath($package); | |
130 $this->io->write(sprintf('Deleting %s - %s', $installPath, $this->filesystem->removeDirectory($installPath) ? '<comment>deleted</comment>' : '<error>not deleted</error>')); | |
131 } | 130 } |
132 | 131 |
133 /** | 132 /** |
134 * {@inheritDoc} | 133 * {@inheritDoc} |
135 */ | 134 */ |