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: BaseInstaller.php
<?php namespace Composer\Installers; use Composer\IO\IOInterface; use Composer\Composer; use Composer\Package\PackageInterface; abstract class BaseInstaller { protected $locations = array(); protected $composer; protected $package; protected $io; /** * Initializes base installer. * * @param PackageInterface $package * @param Composer $composer * @param IOInterface $io */ public function __construct(PackageInterface $package = null, Composer $composer = null, IOInterface $io = null) { $this->composer = $composer; $this->package = $package; $this->io = $io; } /** * Return the install path based on package type. * * @param PackageInterface $package * @param string $frameworkType * @return string */ public function getInstallPath(PackageInterface $package, $frameworkType = '') { $type = $this->package->getType(); $prettyName = $this->package->getPrettyName(); if (strpos($prettyName, '/') !== false) { list($vendor, $name) = explode('/', $prettyName); } else { $vendor = ''; $name = $prettyName; } $availableVars = $this->inflectPackageVars(compact('name', 'vendor', 'type')); $extra = $package->getExtra(); if (!empty($extra['installer-name'])) { $availableVars['name'] = $extra['installer-name']; } if ($this->composer->getPackage()) { $extra = $this->composer->getPackage()->getExtra(); if (!empty($extra['installer-paths'])) { $customPath = $this->mapCustomInstallPaths($extra['installer-paths'], $prettyName, $type, $vendor); if ($customPath !== false) { return $this->templatePath($customPath, $availableVars); } } } $packageType = substr($type, strlen($frameworkType) + 1); $locations = $this->getLocations(); if (!isset($locations[$packageType])) { throw new \InvalidArgumentException(sprintf('Package type "%s" is not supported', $type)); } return $this->templatePath($locations[$packageType], $availableVars); } /** * For an installer to override to modify the vars per installer. * * @param array<string, string> $vars This will normally receive array{name: string, vendor: string, type: string} * @return array<string, string> */ public function inflectPackageVars($vars) { return $vars; } /** * Gets the installer's locations * * @return array<string, string> map of package types => install path */ public function getLocations() { return $this->locations; } /** * Replace vars in a path * * @param string $path * @param array<string, string> $vars * @return string */ protected function templatePath($path, array $vars = array()) { if (strpos($path, '{') !== false) { extract($vars); preg_match_all('@\{\$([A-Za-z0-9_]*)\}@i', $path, $matches); if (!empty($matches[1])) { foreach ($matches[1] as $var) { $path = str_replace('{$' . $var . '}', $$var, $path); } } } return $path; } /** * Search through a passed paths array for a custom install path. * * @param array $paths * @param string $name * @param string $type * @param string $vendor = NULL * @return string|false */ protected function mapCustomInstallPaths(array $paths, $name, $type, $vendor = NULL) { foreach ($paths as $path => $names) { $names = (array) $names; if (in_array($name, $names) || in_array('type:' . $type, $names) || in_array('vendor:' . $vendor, $names)) { return $path; } } return false; } }
Save