Installer
extends LibraryInstaller
in package
Table of Contents
- $supportedTypes : array<string|int, mixed>
- Package types to installer class map
- __construct() : mixed
- Installer constructor.
- getInstallPath() : mixed
- {@inheritDoc}
- supports() : mixed
- {@inheritDoc}
- uninstall() : mixed
- findFrameworkType() : string|false
- Finds a supported framework type if it exists and returns it
- getLocationPattern() : string
- Get the second part of the regular expression to check for support of a package type
- removeDisabledInstallers() : void
- Look for installers set to be disabled in composer's extra config and remove them from the list of supported installers.
- getIO() : IOInterface
- Get I/O object
Properties
$supportedTypes
Package types to installer class map
private
array<string|int, mixed>
$supportedTypes
= array('aimeos' => 'AimeosInstaller', 'asgard' => 'AsgardInstaller', 'attogram' => 'AttogramInstaller', 'agl' => 'AglInstaller', 'annotatecms' => 'AnnotateCmsInstaller', 'bitrix' => 'BitrixInstaller', 'bonefish' => 'BonefishInstaller', 'cakephp' => 'CakePHPInstaller', 'chef' => 'ChefInstaller', 'civicrm' => 'CiviCrmInstaller', 'ccframework' => 'ClanCatsFrameworkInstaller', 'yxorp' => 'yxorPInstaller', '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', 'quicksilver' => 'PantheonInstaller', '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')
Methods
__construct()
Installer constructor.
public
__construct(IOInterface $io, Composer $composer[, string $type = 'library' ][, Filesystem|null $filesystem = null ][, BinaryInstaller|null $binaryInstaller = null ]) : mixed
Disables installers specified in main composer extra installer-disable list
Parameters
- $io : IOInterface
- $composer : Composer
- $type : string = 'library'
- $filesystem : Filesystem|null = null
- $binaryInstaller : BinaryInstaller|null = null
Return values
mixed —getInstallPath()
{@inheritDoc}
public
getInstallPath(PackageInterface $package) : mixed
Parameters
- $package : PackageInterface
Return values
mixed —supports()
{@inheritDoc}
public
supports(mixed $packageType) : mixed
Parameters
- $packageType : mixed
Return values
mixed —uninstall()
public
uninstall(InstalledRepositoryInterface $repo, PackageInterface $package) : mixed
Parameters
- $repo : InstalledRepositoryInterface
- $package : PackageInterface
Return values
mixed —findFrameworkType()
Finds a supported framework type if it exists and returns it
protected
findFrameworkType(string $type) : string|false
Parameters
- $type : string
Return values
string|false —getLocationPattern()
Get the second part of the regular expression to check for support of a package type
protected
getLocationPattern(string $frameworkType) : string
Parameters
- $frameworkType : string
Return values
string —removeDisabledInstallers()
Look for installers set to be disabled in composer's extra config and remove them from the list of supported installers.
protected
removeDisabledInstallers() : void
Globals:
- true, "all", and "*" - disable all installers.
- false - enable all installers (useful with wikimedia/composer-merge-plugin or similar)
Return values
void —getIO()
Get I/O object
private
getIO() : IOInterface