|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __construct (\Magento\Framework\Shell $shell, $installDir, $installConfigFile, $globalConfigFile, $globalConfigDir, $appMode, AutoloaderInterface $autoloadWrapper, $loadTestExtensionAttributes=false) | |
| getDbInstance () | |
| getTempDir () | |
| getInitParams () | |
| isInstalled () | |
| reinitialize (array $overriddenParams=[]) | |
| createInstallDir () | |
| cleanup () | |
| install ($cleanup) | |
| _customizeParams ($params) | |
| getArea () | |
| loadArea ($areaCode) | |
Data Fields | |
| const | DEFAULT_APP_AREA = 'global' |
Protected Member Functions | |
| getInstallConfig () | |
| _ensureDirExists ($dir) | |
| getCustomDirs () | |
Protected Attributes | |
| $_db | |
| $_shell | |
| $installConfig | |
| $_globalConfigDir | |
| $installDir | |
| $_configDir | |
| $_initParams = [] | |
| $_appMode | |
| $_appArea = null | |
| $_primaryConfigData = [] | |
| $_factory | |
| $dirList | |
| $dumpDb = true | |
| $canLoadArea = true | |
| $canInstallSequence = true | |
Encapsulates application installation, initialization and uninstall.
@SuppressWarnings(PHPMD.CouplingBetweenObjects) @SuppressWarnings(PHPMD.TooManyFields)
Definition at line 21 of file Application.php.
| __construct | ( | \Magento\Framework\Shell | $shell, |
| $installDir, | |||
| $installConfigFile, | |||
| $globalConfigFile, | |||
| $globalConfigDir, | |||
| $appMode, | |||
| AutoloaderInterface | $autoloadWrapper, | ||
$loadTestExtensionAttributes = false |
|||
| ) |
Constructor.
| \Magento\Framework\Shell | $shell | |
| string | $installDir | |
| array | $installConfigFile | |
| string | $globalConfigFile | |
| string | $globalConfigDir | |
| string | $appMode | |
| AutoloaderInterface | $autoloadWrapper | |
| bool | null | $loadTestExtensionAttributes |
Definition at line 160 of file Application.php.
| _customizeParams | ( | $params | ) |
Sub-routine for merging custom parameters with the ones defined in object state
| array | $params |
Definition at line 599 of file Application.php.
|
protected |
Create a directory with write permissions or don't touch existing one
| string | $dir |
Definition at line 625 of file Application.php.
| cleanup | ( | ) |
Cleanup both the database and the file system
Definition at line 471 of file Application.php.
| createInstallDir | ( | ) |
Create install dir for integration framework
Definition at line 458 of file Application.php.
| getArea | ( | ) |
|
protected |
Gets customized directory paths
Definition at line 687 of file Application.php.
| getDbInstance | ( | ) |
Retrieve the database adapter instance.
Definition at line 203 of file Application.php.
| getInitParams | ( | ) |
Retrieve application initialization parameters.
Definition at line 284 of file Application.php.
|
protected |
| getTempDir | ( | ) |
| install | ( | $cleanup | ) |
Install an application
| bool | $cleanup |
Definition at line 490 of file Application.php.
| isInstalled | ( | ) |
Weather the application is installed or not.
Definition at line 294 of file Application.php.
| loadArea | ( | $areaCode | ) |
Load application area
| string | $areaCode |
Definition at line 653 of file Application.php.
| reinitialize | ( | array | $overriddenParams = [] | ) |
Reset and initialize again an already installed application
| array | $overriddenParams |
Definition at line 433 of file Application.php.
|
protected |
Definition at line 96 of file Application.php.
|
protected |
Definition at line 89 of file Application.php.
|
protected |
Definition at line 75 of file Application.php.
|
protected |
Definition at line 33 of file Application.php.
|
protected |
Definition at line 110 of file Application.php.
|
protected |
Definition at line 61 of file Application.php.
|
protected |
Definition at line 82 of file Application.php.
|
protected |
Definition at line 103 of file Application.php.
|
protected |
Definition at line 40 of file Application.php.
|
protected |
Definition at line 146 of file Application.php.
|
protected |
Definition at line 141 of file Application.php.
|
protected |
Definition at line 117 of file Application.php.
|
protected |
Definition at line 136 of file Application.php.
|
protected |
Definition at line 54 of file Application.php.
|
protected |
Definition at line 68 of file Application.php.
| const DEFAULT_APP_AREA = 'global' |
Default application area.
Definition at line 26 of file Application.php.