Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (IOInterface $io, Composer $composer, $type='magento-module') | |
setDeployManager (DeployManager $deployManager) | |
setConfig (ProjectConfig $config) | |
getDeployManager () | |
setDeployStrategy ($strategy) | |
getDeployStrategy (PackageInterface $package, $strategy=null) | |
supports ($packageType) | |
getTargetDir () | |
install (InstalledRepositoryInterface $repo, PackageInterface $package) | |
getGitIgnoreFileLocation () | |
appendGitIgnore (PackageInterface $package, $ignoreFile) | |
prepareMagentoCore () | |
update (InstalledRepositoryInterface $repo, PackageInterface $initial, PackageInterface $target) | |
toggleMagentoMaintenanceMode ($active=false) | |
clearMagentoCache () | |
uninstall (InstalledRepositoryInterface $repo, PackageInterface $package) | |
getParser (PackageInterface $package) | |
getInstallPath (PackageInterface $package) | |
transformArrayKeysToLowerCase ($array) | |
annoy (IOInterface $io) | |
Data Fields | |
const | MAGENTO_REMOVE_DEV_FLAG = 'magento-remove-dev' |
const | MAGENTO_MAINTANANCE_FLAG = 'maintenance.flag' |
const | MAGENTO_CACHE_PATH = 'var/cache' |
const | MAGENTO_ROOT_DIR_TMP_SUFFIX = '_tmp' |
const | MAGENTO_ROOT_DIR_BACKUP_SUFFIX = '_bkup' |
Protected Member Functions | |
initializeMagentoRootDir () | |
getSourceDir (PackageInterface $package) | |
preInstallMagentoCore () | |
clearRootDir () | |
setMagentoPermissions () | |
setPermissions ($path, $dirmode, $filemode) | |
redeployProject () | |
preUpdateMagentoCore () | |
postUpdateMagentoCore () | |
cleanupPostUpdateMagentoCore () | |
Protected Attributes | |
$magentoRootDir = null | |
$defaultMagentoRootDir = './' | |
$modmanRootDir = null | |
$isForced = false | |
$_source_dir | |
$_deployStrategy = "copy" | |
$noMaintenanceMode = false | |
$originalMagentoRootDir = null | |
$backupMagentoRootDir = null | |
$removeMagentoDev = false | |
$keepMagentoCache = false | |
$_magentoLocalXmlPath = 'app/etc/local.xml' | |
$_defaultEnvFilePaths | |
$_magentoDevDir = 'dev' | |
$_magentoWritableDirs | |
$deployManager | |
$config | |
$appendGitIgnore = false | |
$_pathMappingTranslations = array() | |
Definition at line 22 of file Installer.php.
__construct | ( | IOInterface | $io, |
Composer | $composer, | ||
$type = 'magento-module' |
|||
) |
Initializes Magento Module installer
\Composer\IO\IOInterface | $io | |
\Composer\Composer | $composer | |
string | $type |
Definition at line 117 of file Installer.php.
annoy | ( | IOInterface | $io | ) |
this function is for annoying people with messages.
First usage: get people to vote about the future release of composer so later I can say "you wanted it this way"
IOInterface | $io |
No <error> in future, as some people look for error lines inside of CI Applications, which annoys them
Definition at line 812 of file Installer.php.
appendGitIgnore | ( | PackageInterface | $package, |
$ignoreFile | |||
) |
Add all the files which are to be deployed to the .gitignore file, if it doesn't exist then create a new one
PackageInterface | $package | |
string | $ignoreFile |
Definition at line 448 of file Installer.php.
|
protected |
Definition at line 669 of file Installer.php.
clearMagentoCache | ( | ) |
Definition at line 700 of file Installer.php.
|
protected |
Definition at line 498 of file Installer.php.
getDeployManager | ( | ) |
Definition at line 213 of file Installer.php.
getDeployStrategy | ( | PackageInterface | $package, |
$strategy = null |
|||
) |
Returns the strategy class used for deployment
\Composer\Package\PackageInterface | $package | |
string | $strategy |
Definition at line 312 of file Installer.php.
getGitIgnoreFileLocation | ( | ) |
getInstallPath | ( | PackageInterface | $package | ) |
Definition at line 775 of file Installer.php.
getParser | ( | PackageInterface | $package | ) |
Returns the modman parser for the vendor dir
PackageInterface | $package |
Definition at line 743 of file Installer.php.
|
protected |
Return Source dir of package
\Composer\Package\PackageInterface | $package |
Definition at line 379 of file Installer.php.
getTargetDir | ( | ) |
Return the absolute target directory path for package installation
Definition at line 390 of file Installer.php.
|
protected |
install | ( | InstalledRepositoryInterface | $repo, |
PackageInterface | $package | ||
) |
Installs specific package
InstalledRepositoryInterface | $repo | repository in which to check |
PackageInterface | $package | package instance |
Definition at line 402 of file Installer.php.
|
protected |
Definition at line 655 of file Installer.php.
|
protected |
Install Magento core
InstalledRepositoryInterface | $repo | repository in which to check |
PackageInterface | $package | package instance |
Definition at line 489 of file Installer.php.
prepareMagentoCore | ( | ) |
Definition at line 503 of file Installer.php.
|
protected |
Definition at line 643 of file Installer.php.
|
protected |
Definition at line 551 of file Installer.php.
setConfig | ( | ProjectConfig | $config | ) |
Definition at line 205 of file Installer.php.
setDeployManager | ( | DeployManager | $deployManager | ) |
DeployManager | $deployManager |
Definition at line 199 of file Installer.php.
setDeployStrategy | ( | $strategy | ) |
string | $strategy |
Definition at line 300 of file Installer.php.
|
protected |
some directories have to be writable for the server
Definition at line 511 of file Installer.php.
|
protected |
set permissions recursively
string | $path | Path to set permissions for |
int | $dirmode | Permissions to be set for directories |
int | $filemode | Permissions to be set for files |
Definition at line 527 of file Installer.php.
supports | ( | $packageType | ) |
Decides if the installer supports the given type
string | $packageType |
Definition at line 368 of file Installer.php.
toggleMagentoMaintenanceMode | ( | $active = false | ) |
Definition at line 687 of file Installer.php.
transformArrayKeysToLowerCase | ( | $array | ) |
Definition at line 796 of file Installer.php.
uninstall | ( | InstalledRepositoryInterface | $repo, |
PackageInterface | $package | ||
) |
Uninstalls specific package.
InstalledRepositoryInterface | $repo | repository in which to check |
PackageInterface | $package | package instance |
Definition at line 715 of file Installer.php.
update | ( | InstalledRepositoryInterface | $repo, |
PackageInterface | $initial, | ||
PackageInterface | $target | ||
) |
Updates specific package
InstalledRepositoryInterface | $repo | repository in which to check |
PackageInterface | $initial | already installed package version |
PackageInterface | $target | updated version |
InvalidArgumentException | if $from package is not installed |
Definition at line 601 of file Installer.php.
|
protected |
Definition at line 76 of file Installer.php.
|
protected |
Definition at line 62 of file Installer.php.
|
protected |
Definition at line 79 of file Installer.php.
|
protected |
Definition at line 75 of file Installer.php.
|
protected |
Definition at line 80 of file Installer.php.
|
protected |
Definition at line 107 of file Installer.php.
|
protected |
Definition at line 57 of file Installer.php.
|
protected |
Definition at line 101 of file Installer.php.
|
protected |
Definition at line 72 of file Installer.php.
|
protected |
Definition at line 94 of file Installer.php.
|
protected |
Definition at line 36 of file Installer.php.
|
protected |
Definition at line 89 of file Installer.php.
|
protected |
Definition at line 50 of file Installer.php.
|
protected |
Definition at line 74 of file Installer.php.
|
protected |
Definition at line 29 of file Installer.php.
|
protected |
Definition at line 43 of file Installer.php.
|
protected |
Definition at line 70 of file Installer.php.
|
protected |
Definition at line 71 of file Installer.php.
|
protected |
Definition at line 73 of file Installer.php.
const MAGENTO_CACHE_PATH = 'var/cache' |
Definition at line 66 of file Installer.php.
const MAGENTO_MAINTANANCE_FLAG = 'maintenance.flag' |
Definition at line 65 of file Installer.php.
const MAGENTO_REMOVE_DEV_FLAG = 'magento-remove-dev' |
Definition at line 64 of file Installer.php.
const MAGENTO_ROOT_DIR_BACKUP_SUFFIX = '_bkup' |
Definition at line 68 of file Installer.php.
const MAGENTO_ROOT_DIR_TMP_SUFFIX = '_tmp' |
Definition at line 67 of file Installer.php.