Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Attributes
SetupApplication Class Reference
Inheritance diagram for SetupApplication:
Application

Public Member Functions

 run ()
 
- Public Member Functions inherited from Application
 __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)
 

Protected Attributes

 $dumpDb = false
 
 $canLoadArea = false
 
 $canInstallSequence = false
 
- Protected Attributes inherited from Application
 $_db
 
 $_shell
 
 $installConfig
 
 $_globalConfigDir
 
 $installDir
 
 $_configDir
 
 $_initParams = []
 
 $_appMode
 
 $_appArea = null
 
 $_primaryConfigData = []
 
 $_factory
 
 $dirList
 
 $dumpDb = true
 
 $canLoadArea = true
 
 $canInstallSequence = true
 

Additional Inherited Members

- Data Fields inherited from Application
const DEFAULT_APP_AREA = 'global'
 
- Protected Member Functions inherited from Application
 getInstallConfig ()
 
 _ensureDirExists ($dir)
 
 getCustomDirs ()
 

Detailed Description

Encapsulates application installation, initialization and uninstall, add flag to skip database dump.

Allow installation and uninstallation.

Definition at line 13 of file SetupApplication.php.

Member Function Documentation

◆ run()

run ( )

{}

Definition at line 33 of file SetupApplication.php.

34  {
35  throw new \Exception("Can't start application.");
36  }

Field Documentation

◆ $canInstallSequence

$canInstallSequence = false
protected

Definition at line 28 of file SetupApplication.php.

◆ $canLoadArea

$canLoadArea = false
protected

Definition at line 23 of file SetupApplication.php.

◆ $dumpDb

$dumpDb = false
protected

{}

Definition at line 18 of file SetupApplication.php.


The documentation for this class was generated from the following file: