|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __construct (FilePermissions $filePermissions, Writer $deploymentConfigWriter, Reader $deploymentConfigReader, \Magento\Framework\App\DeploymentConfig $deploymentConfig, ModuleListInterface $moduleList, ModuleLoader $moduleLoader, AdminAccountFactory $adminAccountFactory, LoggerInterface $log, ConnectionFactory $connectionFactory, MaintenanceMode $maintenanceMode, Filesystem $filesystem, ObjectManagerProvider $objectManagerProvider, Context $context, SetupConfigModel $setupConfigModel, CleanupFiles $cleanupFiles, DbValidator $dbValidator, SetupFactory $setupFactory, DataSetupFactory $dataSetupFactory, \Magento\Framework\Setup\SampleData\State $sampleDataState, ComponentRegistrar $componentRegistrar, PhpReadinessCheck $phpReadinessCheck) | |
| install ($request) | |
| checkInstallationFilePermissions () | |
| checkExtensions () | |
| checkApplicationFilePermissions () | |
| installDeploymentConfig ($data) | |
| declarativeInstallSchema (array $request) | |
| checkFilePermissionsForDbUpgrade () | |
| installAdminUser ($data) | |
| updateModulesSequence ($keepGeneratedFiles=false) | |
| uninstall () | |
| getInstallInfo () | |
| cleanupDb () | |
Data Fields | |
| const | ENABLE_MODULES = 'enable-modules' |
| const | DISABLE_MODULES = 'disable-modules' |
| const | PROGRESS_LOG_RENDER = '[Progress: %d / %d]' |
| const | PROGRESS_LOG_REGEX = '/\[Progress: (\d+) \/ (\d+)\]/s' |
| const | SCHEMA_INSTALL = \Magento\Framework\Setup\InstallSchemaInterface::class |
| const | SCHEMA_UPGRADE = \Magento\Framework\Setup\UpgradeSchemaInterface::class |
| const | DATA_INSTALL = \Magento\Framework\Setup\InstallDataInterface::class |
| const | DATA_UPGRADE = \Magento\Framework\Setup\UpgradeDataInterface::class |
| const | INFO_MESSAGE = 'message' |
| const | MYSQL_VERSION_REQUIRED = '5.6.0' |
Protected Member Functions | |
| createSchemaDataHandler ($className, $interfaceName) | |
Protected Attributes | |
| $sampleDataState | |
Class Installer contains the logic to install Magento application.
@SuppressWarnings(PHPMD.CouplingBetweenObjects) @SuppressWarnings(PHPMD.TooManyFields) @SuppressWarnings(PHPMD.ExcessiveClassComplexity)
Definition at line 54 of file Installer.php.
| __construct | ( | FilePermissions | $filePermissions, |
| Writer | $deploymentConfigWriter, | ||
| Reader | $deploymentConfigReader, | ||
| \Magento\Framework\App\DeploymentConfig | $deploymentConfig, | ||
| ModuleListInterface | $moduleList, | ||
| ModuleLoader | $moduleLoader, | ||
| AdminAccountFactory | $adminAccountFactory, | ||
| LoggerInterface | $log, | ||
| ConnectionFactory | $connectionFactory, | ||
| MaintenanceMode | $maintenanceMode, | ||
| Filesystem | $filesystem, | ||
| ObjectManagerProvider | $objectManagerProvider, | ||
| Context | $context, | ||
| SetupConfigModel | $setupConfigModel, | ||
| CleanupFiles | $cleanupFiles, | ||
| DbValidator | $dbValidator, | ||
| SetupFactory | $setupFactory, | ||
| DataSetupFactory | $dataSetupFactory, | ||
| \Magento\Framework\Setup\SampleData\State | $sampleDataState, | ||
| ComponentRegistrar | $componentRegistrar, | ||
| PhpReadinessCheck | $phpReadinessCheck | ||
| ) |
Constructor
| FilePermissions | $filePermissions | |
| Writer | $deploymentConfigWriter | |
| Reader | $deploymentConfigReader | |
| \Magento\Framework\App\DeploymentConfig | $deploymentConfig | |
| ModuleListInterface | $moduleList | |
| ModuleLoader | $moduleLoader | |
| AdminAccountFactory | $adminAccountFactory | |
| LoggerInterface | $log | |
| ConnectionFactory | $connectionFactory | |
| MaintenanceMode | $maintenanceMode | |
| Filesystem | $filesystem | |
| ObjectManagerProvider | $objectManagerProvider | |
| Context | $context | |
| SetupConfigModel | $setupConfigModel | |
| CleanupFiles | $cleanupFiles | |
| DbValidator | $dbValidator | |
| SetupFactory | $setupFactory | |
| DataSetupFactory | $dataSetupFactory | |
| \Magento\Framework\Setup\SampleData\State | $sampleDataState | |
| ComponentRegistrar | $componentRegistrar | |
| PhpReadinessCheck | $phpReadinessCheck |
Definition at line 273 of file Installer.php.
| checkApplicationFilePermissions | ( | ) |
Check permissions of directories that are expected to be non-writable for application
Definition at line 528 of file Installer.php.
| checkExtensions | ( | ) |
Check required extensions for installation
Definition at line 511 of file Installer.php.
| checkFilePermissionsForDbUpgrade | ( | ) |
Check permissions of directories that are expected to be writable for database upgrade
Definition at line 885 of file Installer.php.
| checkInstallationFilePermissions | ( | ) |
Check permissions of directories that are expected to be writable for installation
Definition at line 498 of file Installer.php.
| cleanupDb | ( | ) |
Deletes the database and creates it again
Definition at line 1294 of file Installer.php.
|
protected |
Create data handler
| string | $className | |
| string | $interfaceName |
Definition at line 1096 of file Installer.php.
| declarativeInstallSchema | ( | array | $request | ) |
Install Magento if declaration mode was enabled.
| array | $request |
Definition at line 806 of file Installer.php.
| getInstallInfo | ( | ) |
| install | ( | $request | ) |
| \ArrayObject | array | $request |
Definition at line 328 of file Installer.php.
| installAdminUser | ( | $data | ) |
Create admin account
| \ArrayObject | array | $data |
Definition at line 1158 of file Installer.php.
| installDeploymentConfig | ( | $data | ) |
Installs deployment configuration
| \ArrayObject | array | $data |
Definition at line 545 of file Installer.php.
| uninstall | ( | ) |
| updateModulesSequence | ( | $keepGeneratedFiles = false | ) |
Updates modules in deployment configuration
| bool | $keepGeneratedFiles | Cleanup generated classes and view files and reset ObjectManager |
Definition at line 1182 of file Installer.php.
|
protected |
Definition at line 217 of file Installer.php.
| const DATA_INSTALL = \Magento\Framework\Setup\InstallDataInterface::class |
Definition at line 75 of file Installer.php.
| const DATA_UPGRADE = \Magento\Framework\Setup\UpgradeDataInterface::class |
Definition at line 76 of file Installer.php.
| const DISABLE_MODULES = 'disable-modules' |
Definition at line 60 of file Installer.php.
| const ENABLE_MODULES = 'enable-modules' |
#+ Parameters for enabling/disabling modules
Definition at line 59 of file Installer.php.
| const INFO_MESSAGE = 'message' |
#-
Definition at line 79 of file Installer.php.
| const MYSQL_VERSION_REQUIRED = '5.6.0' |
The lowest supported MySQL verion
Definition at line 84 of file Installer.php.
| const PROGRESS_LOG_REGEX = '/\[Progress: (\d+) \/ (\d+)\]/s' |
Definition at line 67 of file Installer.php.
| const PROGRESS_LOG_RENDER = '[Progress: %d / %d]' |
#- #+ Formatting for progress log
Definition at line 66 of file Installer.php.
| const SCHEMA_INSTALL = \Magento\Framework\Setup\InstallSchemaInterface::class |
#- #+ Instance types for schema and data handler
Definition at line 73 of file Installer.php.
| const SCHEMA_UPGRADE = \Magento\Framework\Setup\UpgradeSchemaInterface::class |
Definition at line 74 of file Installer.php.