golden hour
/var/www/html/wp-content/plugins/woocommerce/vendor/composer/installers/src/Composer/Installers
⬆️ Go Up
Upload
File/Folder
Size
Actions
AglInstaller.php
457 B
Del
OK
AimeosInstaller.php
168 B
Del
OK
AnnotateCmsInstaller.php
286 B
Del
OK
AsgardInstaller.php
1.29 KB
Del
OK
AttogramInstaller.php
169 B
Del
OK
BaseInstaller.php
3.98 KB
Del
OK
BitrixInstaller.php
4.17 KB
Del
OK
BonefishInstaller.php
183 B
Del
OK
CakePHPInstaller.php
1.74 KB
Del
OK
ChefInstaller.php
222 B
Del
OK
CiviCrmInstaller.php
163 B
Del
OK
ClanCatsFrameworkInstaller.php
214 B
Del
OK
CockpitInstaller.php
665 B
Del
OK
CodeIgniterInstaller.php
309 B
Del
OK
Concrete5Installer.php
366 B
Del
OK
CraftInstaller.php
806 B
Del
OK
CroogoInstaller.php
503 B
Del
OK
DecibelInstaller.php
186 B
Del
OK
DframeInstaller.php
179 B
Del
OK
DokuWikiInstaller.php
1.23 KB
Del
OK
DolibarrInstaller.php
354 B
Del
OK
DrupalInstaller.php
867 B
Del
OK
ElggInstaller.php
161 B
Del
OK
EliasisInstaller.php
305 B
Del
OK
ExpressionEngineInstaller.php
732 B
Del
OK
EzPlatformInstaller.php
236 B
Del
OK
FuelInstaller.php
271 B
Del
OK
FuelphpInstaller.php
175 B
Del
OK
GravInstaller.php
700 B
Del
OK
HuradInstaller.php
702 B
Del
OK
ImageCMSInstaller.php
292 B
Del
OK
Installer.php
10.2 KB
Del
OK
ItopInstaller.php
174 B
Del
OK
JoomlaInstaller.php
416 B
Del
OK
KanboardInstaller.php
296 B
Del
OK
KirbyInstaller.php
261 B
Del
OK
KnownInstaller.php
265 B
Del
OK
KodiCMSInstaller.php
219 B
Del
OK
KohanaInstaller.php
167 B
Del
OK
LanManagementSystemInstaller.php
726 B
Del
OK
LaravelInstaller.php
171 B
Del
OK
LavaLiteInstaller.php
228 B
Del
OK
LithiumInstaller.php
222 B
Del
OK
MODULEWorkInstaller.php
174 B
Del
OK
MODXEvoInstaller.php
481 B
Del
OK
MagentoInstaller.php
273 B
Del
OK
MajimaInstaller.php
834 B
Del
OK
MakoInstaller.php
171 B
Del
OK
MantisBTInstaller.php
584 B
Del
OK
MauticInstaller.php
1.15 KB
Del
OK
MayaInstaller.php
791 B
Del
OK
MediaWikiInstaller.php
1.27 KB
Del
OK
MiaoxingInstaller.php
170 B
Del
OK
MicroweberInstaller.php
4.22 KB
Del
OK
ModxInstaller.php
244 B
Del
OK
MoodleInstaller.php
3.04 KB
Del
OK
OctoberInstaller.php
1.25 KB
Del
OK
OntoWikiInstaller.php
724 B
Del
OK
OsclassInstaller.php
295 B
Del
OK
OxidInstaller.php
1.42 KB
Del
OK
PPIInstaller.php
164 B
Del
OK
PhiftyInstaller.php
256 B
Del
OK
PhpBBInstaller.php
261 B
Del
OK
PimcoreInstaller.php
544 B
Del
OK
PiwikInstaller.php
697 B
Del
OK
PlentymarketsInstaller.php
713 B
Del
OK
Plugin.php
652 B
Del
OK
PortoInstaller.php
176 B
Del
OK
PrestashopInstaller.php
210 B
Del
OK
ProcessWireInstaller.php
555 B
Del
OK
PuppetInstaller.php
169 B
Del
OK
PxcmsInstaller.php
1.96 KB
Del
OK
RadPHPInstaller.php
659 B
Del
OK
ReIndexInstaller.php
212 B
Del
OK
Redaxo5Installer.php
260 B
Del
OK
RedaxoInstaller.php
267 B
Del
OK
RoundcubeInstaller.php
457 B
Del
OK
SMFInstaller.php
202 B
Del
OK
ShopwareInstaller.php
1.61 KB
Del
OK
SilverStripeInstaller.php
1.08 KB
Del
OK
SiteDirectInstaller.php
654 B
Del
OK
StarbugInstaller.php
305 B
Del
OK
SyDESInstaller.php
1.18 KB
Del
OK
SyliusInstaller.php
165 B
Del
OK
Symfony1Installer.php
566 B
Del
OK
TYPO3CmsInstaller.php
381 B
Del
OK
TYPO3FlowInstaller.php
1.19 KB
Del
OK
TaoInstaller.php
787 B
Del
OK
TastyIgniterInstaller.php
875 B
Del
OK
TheliaInstaller.php
388 B
Del
OK
TuskInstaller.php
416 B
Del
OK
UserFrostingInstaller.php
181 B
Del
OK
VanillaInstaller.php
213 B
Del
OK
VgmcpInstaller.php
1.3 KB
Del
OK
WHMCSInstaller.php
838 B
Del
OK
WinterInstaller.php
1.44 KB
Del
OK
WolfCMSInstaller.php
173 B
Del
OK
WordPressInstaller.php
340 B
Del
OK
YawikInstaller.php
678 B
Del
OK
ZendInstaller.php
254 B
Del
OK
ZikulaInstaller.php
225 B
Del
OK
Edit: Installer.php
<?php namespace Composer\Installers; use Composer\Composer; use Composer\Installer\BinaryInstaller; use Composer\Installer\LibraryInstaller; use Composer\IO\IOInterface; use Composer\Package\PackageInterface; use Composer\Repository\InstalledRepositoryInterface; use Composer\Util\Filesystem; use React\Promise\PromiseInterface; class Installer extends LibraryInstaller { /** * Package types to installer class map * * @var array */ private $supportedTypes = array( 'aimeos' => 'AimeosInstaller', 'asgard' => 'AsgardInstaller', 'attogram' => 'AttogramInstaller', 'agl' => 'AglInstaller', 'annotatecms' => 'AnnotateCmsInstaller', 'bitrix' => 'BitrixInstaller', 'bonefish' => 'BonefishInstaller', 'cakephp' => 'CakePHPInstaller', 'chef' => 'ChefInstaller', 'civicrm' => 'CiviCrmInstaller', 'ccframework' => 'ClanCatsFrameworkInstaller', 'cockpit' => 'CockpitInstaller', 'codeigniter' => 'CodeIgniterInstaller', 'concrete5' => 'Concrete5Installer', 'craft' => 'CraftInstaller', 'croogo' => 'CroogoInstaller', 'dframe' => 'DframeInstaller', 'dokuwiki' => 'DokuWikiInstaller', 'dolibarr' => 'DolibarrInstaller', 'decibel' => 'DecibelInstaller', 'drupal' => 'DrupalInstaller', 'elgg' => 'ElggInstaller', 'eliasis' => 'EliasisInstaller', 'ee3' => 'ExpressionEngineInstaller', 'ee2' => 'ExpressionEngineInstaller', 'ezplatform' => 'EzPlatformInstaller', 'fuel' => 'FuelInstaller', 'fuelphp' => 'FuelphpInstaller', 'grav' => 'GravInstaller', 'hurad' => 'HuradInstaller', 'tastyigniter' => 'TastyIgniterInstaller', 'imagecms' => 'ImageCMSInstaller', 'itop' => 'ItopInstaller', 'joomla' => 'JoomlaInstaller', 'kanboard' => 'KanboardInstaller', 'kirby' => 'KirbyInstaller', 'known' => 'KnownInstaller', 'kodicms' => 'KodiCMSInstaller', 'kohana' => 'KohanaInstaller', 'lms' => 'LanManagementSystemInstaller', 'laravel' => 'LaravelInstaller', 'lavalite' => 'LavaLiteInstaller', 'lithium' => 'LithiumInstaller', 'magento' => 'MagentoInstaller', 'majima' => 'MajimaInstaller', 'mantisbt' => 'MantisBTInstaller', 'mako' => 'MakoInstaller', 'maya' => 'MayaInstaller', 'mautic' => 'MauticInstaller', 'mediawiki' => 'MediaWikiInstaller', 'miaoxing' => 'MiaoxingInstaller', 'microweber' => 'MicroweberInstaller', 'modulework' => 'MODULEWorkInstaller', 'modx' => 'ModxInstaller', 'modxevo' => 'MODXEvoInstaller', 'moodle' => 'MoodleInstaller', 'october' => 'OctoberInstaller', 'ontowiki' => 'OntoWikiInstaller', 'oxid' => 'OxidInstaller', 'osclass' => 'OsclassInstaller', 'pxcms' => 'PxcmsInstaller', 'phpbb' => 'PhpBBInstaller', 'pimcore' => 'PimcoreInstaller', 'piwik' => 'PiwikInstaller', 'plentymarkets'=> 'PlentymarketsInstaller', 'ppi' => 'PPIInstaller', 'puppet' => 'PuppetInstaller', 'radphp' => 'RadPHPInstaller', 'phifty' => 'PhiftyInstaller', 'porto' => 'PortoInstaller', 'processwire' => 'ProcessWireInstaller', 'redaxo' => 'RedaxoInstaller', 'redaxo5' => 'Redaxo5Installer', 'reindex' => 'ReIndexInstaller', 'roundcube' => 'RoundcubeInstaller', 'shopware' => 'ShopwareInstaller', 'sitedirect' => 'SiteDirectInstaller', 'silverstripe' => 'SilverStripeInstaller', 'smf' => 'SMFInstaller', 'starbug' => 'StarbugInstaller', 'sydes' => 'SyDESInstaller', 'sylius' => 'SyliusInstaller', 'symfony1' => 'Symfony1Installer', 'tao' => 'TaoInstaller', 'thelia' => 'TheliaInstaller', 'tusk' => 'TuskInstaller', 'typo3-cms' => 'TYPO3CmsInstaller', 'typo3-flow' => 'TYPO3FlowInstaller', 'userfrosting' => 'UserFrostingInstaller', 'vanilla' => 'VanillaInstaller', 'whmcs' => 'WHMCSInstaller', 'winter' => 'WinterInstaller', 'wolfcms' => 'WolfCMSInstaller', 'wordpress' => 'WordPressInstaller', 'yawik' => 'YawikInstaller', 'zend' => 'ZendInstaller', 'zikula' => 'ZikulaInstaller', 'prestashop' => 'PrestashopInstaller' ); /** * Installer constructor. * * Disables installers specified in main composer extra installer-disable * list * * @param IOInterface $io * @param Composer $composer * @param string $type * @param Filesystem|null $filesystem * @param BinaryInstaller|null $binaryInstaller */ public function __construct( IOInterface $io, Composer $composer, $type = 'library', Filesystem $filesystem = null, BinaryInstaller $binaryInstaller = null ) { parent::__construct($io, $composer, $type, $filesystem, $binaryInstaller); $this->removeDisabledInstallers(); } /** * {@inheritDoc} */ public function getInstallPath(PackageInterface $package) { $type = $package->getType(); $frameworkType = $this->findFrameworkType($type); if ($frameworkType === false) { throw new \InvalidArgumentException( 'Sorry the package type of this package is not yet supported.' ); } $class = 'Composer\\Installers\\' . $this->supportedTypes[$frameworkType]; $installer = new $class($package, $this->composer, $this->getIO()); return $installer->getInstallPath($package, $frameworkType); } public function uninstall(InstalledRepositoryInterface $repo, PackageInterface $package) { $installPath = $this->getPackageBasePath($package); $io = $this->io; $outputStatus = function () use ($io, $installPath) { $io->write(sprintf('Deleting %s - %s', $installPath, !file_exists($installPath) ? '<comment>deleted</comment>' : '<error>not deleted</error>')); }; $promise = parent::uninstall($repo, $package); // Composer v2 might return a promise here if ($promise instanceof PromiseInterface) { return $promise->then($outputStatus); } // If not, execute the code right away as parent::uninstall executed synchronously (composer v1, or v2 without async) $outputStatus(); return null; } /** * {@inheritDoc} */ public function supports($packageType) { $frameworkType = $this->findFrameworkType($packageType); if ($frameworkType === false) { return false; } $locationPattern = $this->getLocationPattern($frameworkType); return preg_match('#' . $frameworkType . '-' . $locationPattern . '#', $packageType, $matches) === 1; } /** * Finds a supported framework type if it exists and returns it * * @param string $type * @return string|false */ protected function findFrameworkType($type) { krsort($this->supportedTypes); foreach ($this->supportedTypes as $key => $val) { if ($key === substr($type, 0, strlen($key))) { return substr($type, 0, strlen($key)); } } return false; } /** * Get the second part of the regular expression to check for support of a * package type * * @param string $frameworkType * @return string */ protected function getLocationPattern($frameworkType) { $pattern = false; if (!empty($this->supportedTypes[$frameworkType])) { $frameworkClass = 'Composer\\Installers\\' . $this->supportedTypes[$frameworkType]; /** @var BaseInstaller $framework */ $framework = new $frameworkClass(null, $this->composer, $this->getIO()); $locations = array_keys($framework->getLocations()); $pattern = $locations ? '(' . implode('|', $locations) . ')' : false; } return $pattern ? : '(\w+)'; } /** * Get I/O object * * @return IOInterface */ private function getIO() { return $this->io; } /** * Look for installers set to be disabled in composer's extra config and * remove them from the list of supported installers. * * Globals: * - true, "all", and "*" - disable all installers. * - false - enable all installers (useful with * wikimedia/composer-merge-plugin or similar) * * @return void */ protected function removeDisabledInstallers() { $extra = $this->composer->getPackage()->getExtra(); if (!isset($extra['installer-disable']) || $extra['installer-disable'] === false) { // No installers are disabled return; } // Get installers to disable $disable = $extra['installer-disable']; // Ensure $disabled is an array if (!is_array($disable)) { $disable = array($disable); } // Check which installers should be disabled $all = array(true, "all", "*"); $intersect = array_intersect($all, $disable); if (!empty($intersect)) { // Disable all installers $this->supportedTypes = array(); } else { // Disable specified installers foreach ($disable as $key => $installer) { if (is_string($installer) && key_exists($installer, $this->supportedTypes)) { unset($this->supportedTypes[$installer]); } } } } }
Save