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: BitrixInstaller.php
<?php namespace Composer\Installers; use Composer\Util\Filesystem; /** * Installer for Bitrix Framework. Supported types of extensions: * - `bitrix-d7-module` — copy the module to directory `bitrix/modules/<vendor>.<name>`. * - `bitrix-d7-component` — copy the component to directory `bitrix/components/<vendor>/<name>`. * - `bitrix-d7-template` — copy the template to directory `bitrix/templates/<vendor>_<name>`. * * You can set custom path to directory with Bitrix kernel in `composer.json`: * * ```json * { * "extra": { * "bitrix-dir": "s1/bitrix" * } * } * ``` * * @author Nik Samokhvalov <nik@samokhvalov.info> * @author Denis Kulichkin <onexhovia@gmail.com> */ class BitrixInstaller extends BaseInstaller { protected $locations = array( 'module' => '{$bitrix_dir}/modules/{$name}/', // deprecated, remove on the major release (Backward compatibility will be broken) 'component' => '{$bitrix_dir}/components/{$name}/', // deprecated, remove on the major release (Backward compatibility will be broken) 'theme' => '{$bitrix_dir}/templates/{$name}/', // deprecated, remove on the major release (Backward compatibility will be broken) 'd7-module' => '{$bitrix_dir}/modules/{$vendor}.{$name}/', 'd7-component' => '{$bitrix_dir}/components/{$vendor}/{$name}/', 'd7-template' => '{$bitrix_dir}/templates/{$vendor}_{$name}/', ); /** * @var array Storage for informations about duplicates at all the time of installation packages. */ private static $checkedDuplicates = array(); /** * {@inheritdoc} */ public function inflectPackageVars($vars) { if ($this->composer->getPackage()) { $extra = $this->composer->getPackage()->getExtra(); if (isset($extra['bitrix-dir'])) { $vars['bitrix_dir'] = $extra['bitrix-dir']; } } if (!isset($vars['bitrix_dir'])) { $vars['bitrix_dir'] = 'bitrix'; } return parent::inflectPackageVars($vars); } /** * {@inheritdoc} */ protected function templatePath($path, array $vars = array()) { $templatePath = parent::templatePath($path, $vars); $this->checkDuplicates($templatePath, $vars); return $templatePath; } /** * Duplicates search packages. * * @param string $path * @param array $vars */ protected function checkDuplicates($path, array $vars = array()) { $packageType = substr($vars['type'], strlen('bitrix') + 1); $localDir = explode('/', $vars['bitrix_dir']); array_pop($localDir); $localDir[] = 'local'; $localDir = implode('/', $localDir); $oldPath = str_replace( array('{$bitrix_dir}', '{$name}'), array($localDir, $vars['name']), $this->locations[$packageType] ); if (in_array($oldPath, static::$checkedDuplicates)) { return; } if ($oldPath !== $path && file_exists($oldPath) && $this->io && $this->io->isInteractive()) { $this->io->writeError(' <error>Duplication of packages:</error>'); $this->io->writeError(' <info>Package ' . $oldPath . ' will be called instead package ' . $path . '</info>'); while (true) { switch ($this->io->ask(' <info>Delete ' . $oldPath . ' [y,n,?]?</info> ', '?')) { case 'y': $fs = new Filesystem(); $fs->removeDirectory($oldPath); break 2; case 'n': break 2; case '?': default: $this->io->writeError(array( ' y - delete package ' . $oldPath . ' and to continue with the installation', ' n - don\'t delete and to continue with the installation', )); $this->io->writeError(' ? - print help'); break; } } } static::$checkedDuplicates[] = $oldPath; } }
Save