PATH:
home
/
lab2454c
/
keebchat.com
/
core
/
libs
/
s3
/
vendor
/
composer
/
installers
/
src
/
Composer
/
Installers
<?php namespace Composer\Installers; use Composer\DependencyResolver\Pool; class CakePHPInstaller extends BaseInstaller { protected $locations = array( 'plugin' => 'Plugin/{$name}/', ); /** * Format package name to CamelCase */ public function inflectPackageVars($vars) { if ($this->matchesCakeVersion('>=', '3.0.0')) { return $vars; } $nameParts = explode('/', $vars['name']); foreach ($nameParts as &$value) { $value = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $value)); $value = str_replace(array('-', '_'), ' ', $value); $value = str_replace(' ', '', ucwords($value)); } $vars['name'] = implode('/', $nameParts); return $vars; } /** * Change the default plugin location when cakephp >= 3.0 */ public function getLocations() { if ($this->matchesCakeVersion('>=', '3.0.0')) { $this->locations['plugin'] = $this->composer->getConfig()->get('vendor-dir') . '/{$vendor}/{$name}/'; } return $this->locations; } /** * Check if CakePHP version matches against a version * * @param string $matcher * @param string $version * @return bool */ protected function matchesCakeVersion($matcher, $version) { if (class_exists('Composer\Semver\Constraint\MultiConstraint')) { $multiClass = 'Composer\Semver\Constraint\MultiConstraint'; $constraintClass = 'Composer\Semver\Constraint\Constraint'; } else { $multiClass = 'Composer\Package\LinkConstraint\MultiConstraint'; $constraintClass = 'Composer\Package\LinkConstraint\VersionConstraint'; } $repositoryManager = $this->composer->getRepositoryManager(); if ($repositoryManager) { $repos = $repositoryManager->getLocalRepository(); if (!$repos) { return false; } $cake3 = new $multiClass(array( new $constraintClass($matcher, $version), new $constraintClass('!=', '9999999-dev'), )); $pool = new Pool('dev'); $pool->addRepository($repos); $packages = $pool->whatProvides('cakephp/cakephp'); foreach ($packages as $package) { $installed = new $constraintClass('=', $package->getVersion()); if ($cake3->matches($installed)) { return true; } } } return false; } }
[-] 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]