PATH:
home
/
lab2454c
/
keebchat.com
/
core
/
libs
/
s3
/
vendor
/
composer
/
installers
/
src
/
Composer
/
Installers
<?php namespace Composer\Installers; class MicroweberInstaller extends BaseInstaller { protected $locations = array( 'module' => 'userfiles/modules/{$install_item_dir}/', 'module-skin' => 'userfiles/modules/{$install_item_dir}/templates/', 'template' => 'userfiles/templates/{$install_item_dir}/', 'element' => 'userfiles/elements/{$install_item_dir}/', 'vendor' => 'vendor/{$install_item_dir}/', 'components' => 'components/{$install_item_dir}/' ); /** * Format package name. * * For package type microweber-module, cut off a trailing '-module' if present * * For package type microweber-template, cut off a trailing '-template' if present. * */ public function inflectPackageVars($vars) { if ($this->package->getTargetDir()) { $vars['install_item_dir'] = $this->package->getTargetDir(); } else { $vars['install_item_dir'] = $vars['name']; if ($vars['type'] === 'microweber-template') { return $this->inflectTemplateVars($vars); } if ($vars['type'] === 'microweber-templates') { return $this->inflectTemplatesVars($vars); } if ($vars['type'] === 'microweber-core') { return $this->inflectCoreVars($vars); } if ($vars['type'] === 'microweber-adapter') { return $this->inflectCoreVars($vars); } if ($vars['type'] === 'microweber-module') { return $this->inflectModuleVars($vars); } if ($vars['type'] === 'microweber-modules') { return $this->inflectModulesVars($vars); } if ($vars['type'] === 'microweber-skin') { return $this->inflectSkinVars($vars); } if ($vars['type'] === 'microweber-element' or $vars['type'] === 'microweber-elements') { return $this->inflectElementVars($vars); } } return $vars; } protected function inflectTemplateVars($vars) { $vars['install_item_dir'] = preg_replace('/-template$/', '', $vars['install_item_dir']); $vars['install_item_dir'] = preg_replace('/template-$/', '', $vars['install_item_dir']); return $vars; } protected function inflectTemplatesVars($vars) { $vars['install_item_dir'] = preg_replace('/-templates$/', '', $vars['install_item_dir']); $vars['install_item_dir'] = preg_replace('/templates-$/', '', $vars['install_item_dir']); return $vars; } protected function inflectCoreVars($vars) { $vars['install_item_dir'] = preg_replace('/-providers$/', '', $vars['install_item_dir']); $vars['install_item_dir'] = preg_replace('/-provider$/', '', $vars['install_item_dir']); $vars['install_item_dir'] = preg_replace('/-adapter$/', '', $vars['install_item_dir']); return $vars; } protected function inflectModuleVars($vars) { $vars['install_item_dir'] = preg_replace('/-module$/', '', $vars['install_item_dir']); $vars['install_item_dir'] = preg_replace('/module-$/', '', $vars['install_item_dir']); return $vars; } protected function inflectModulesVars($vars) { $vars['install_item_dir'] = preg_replace('/-modules$/', '', $vars['install_item_dir']); $vars['install_item_dir'] = preg_replace('/modules-$/', '', $vars['install_item_dir']); return $vars; } protected function inflectSkinVars($vars) { $vars['install_item_dir'] = preg_replace('/-skin$/', '', $vars['install_item_dir']); $vars['install_item_dir'] = preg_replace('/skin-$/', '', $vars['install_item_dir']); return $vars; } protected function inflectElementVars($vars) { $vars['install_item_dir'] = preg_replace('/-elements$/', '', $vars['install_item_dir']); $vars['install_item_dir'] = preg_replace('/elements-$/', '', $vars['install_item_dir']); $vars['install_item_dir'] = preg_replace('/-element$/', '', $vars['install_item_dir']); $vars['install_item_dir'] = preg_replace('/element-$/', '', $vars['install_item_dir']); return $vars; } }
[-] SyDESInstaller.php
[edit]
[-] Concrete5Installer.php
[edit]
[-] LaravelInstaller.php
[edit]
[-] MakoInstaller.php
[edit]
[-] MayaInstaller.php
[edit]
[-] LavaLiteInstaller.php
[edit]
[-] KodiCMSInstaller.php
[edit]
[-] PortoInstaller.php
[edit]
[-] GravInstaller.php
[edit]
[-] Plugin.php
[edit]
[-] TheliaInstaller.php
[edit]
[-] PPIInstaller.php
[edit]
[-] CraftInstaller.php
[edit]
[-] JoomlaInstaller.php
[edit]
[-] CroogoInstaller.php
[edit]
[-] Redaxo5Installer.php
[edit]
[-] WordPressInstaller.php
[edit]
[-] ModxInstaller.php
[edit]
[-] ExpressionEngineInstaller.php
[edit]
[+]
..
[-] TYPO3FlowInstaller.php
[edit]
[-] PuppetInstaller.php
[edit]
[-] ItopInstaller.php
[edit]
[-] SiteDirectInstaller.php
[edit]
[-] EliasisInstaller.php
[edit]
[-] EzPlatformInstaller.php
[edit]
[-] PhpBBInstaller.php
[edit]
[-] PlentymarketsInstaller.php
[edit]
[-] MauticInstaller.php
[edit]
[-] AnnotateCmsInstaller.php
[edit]
[-] Symfony1Installer.php
[edit]
[-] AttogramInstaller.php
[edit]
[-] YawikInstaller.php
[edit]
[-] PrestashopInstaller.php
[edit]
[-] MajimaInstaller.php
[edit]
[-] FuelInstaller.php
[edit]
[-] MediaWikiInstaller.php
[edit]
[-] VgmcpInstaller.php
[edit]
[-] FuelphpInstaller.php
[edit]
[-] BaseInstaller.php
[edit]
[-] KnownInstaller.php
[edit]
[-] ClanCatsFrameworkInstaller.php
[edit]
[-] DframeInstaller.php
[edit]
[-] RoundcubeInstaller.php
[edit]
[-] CockpitInstaller.php
[edit]
[-] CiviCrmInstaller.php
[edit]
[-] MoodleInstaller.php
[edit]
[-] SilverStripeInstaller.php
[edit]
[-] AsgardInstaller.php
[edit]
[-] TaoInstaller.php
[edit]
[-] ReIndexInstaller.php
[edit]
[-] OsclassInstaller.php
[edit]
[-] MODULEWorkInstaller.php
[edit]
[-] AimeosInstaller.php
[edit]
[-] WolfCMSInstaller.php
[edit]
[-] RadPHPInstaller.php
[edit]
[-] OctoberInstaller.php
[edit]
[-] CakePHPInstaller.php
[edit]
[-] SMFInstaller.php
[edit]
[-] LithiumInstaller.php
[edit]
[-] OntoWikiInstaller.php
[edit]
[-] DecibelInstaller.php
[edit]
[-] DokuWikiInstaller.php
[edit]
[-] RedaxoInstaller.php
[edit]
[-] ChefInstaller.php
[edit]
[-] Installer.php
[edit]
[-] DolibarrInstaller.php
[edit]
[-] WHMCSInstaller.php
[edit]
[-] VanillaInstaller.php
[edit]
[-] KanboardInstaller.php
[edit]
[-] ZikulaInstaller.php
[edit]
[-] PxcmsInstaller.php
[edit]
[-] KohanaInstaller.php
[edit]
[-] CodeIgniterInstaller.php
[edit]
[-] PhiftyInstaller.php
[edit]
[-] MagentoInstaller.php
[edit]
[-] DrupalInstaller.php
[edit]
[-] PimcoreInstaller.php
[edit]
[-] BitrixInstaller.php
[edit]
[-] BonefishInstaller.php
[edit]
[-] LanManagementSystemInstaller.php
[edit]
[-] AglInstaller.php
[edit]
[-] PiwikInstaller.php
[edit]
[-] KirbyInstaller.php
[edit]
[-] ShopwareInstaller.php
[edit]
[-] MODXEvoInstaller.php
[edit]
[-] ZendInstaller.php
[edit]
[-] TYPO3CmsInstaller.php
[edit]
[-] UserFrostingInstaller.php
[edit]
[-] ImageCMSInstaller.php
[edit]
[-] OxidInstaller.php
[edit]
[-] HuradInstaller.php
[edit]
[-] MicroweberInstaller.php
[edit]
[-] TuskInstaller.php
[edit]
[-] ElggInstaller.php
[edit]