PHP Class App\Console\Commands\XeInstall

Inheritance: extends Illuminate\Console\Command
Mostrar archivo Open project: xpressengine/xpressengine

Protected Properties

Property Type Description
$appKey
$basePlugins array
$defaultInfos array
$description string The console command description.
$executed boolean
$migrations
$signature string The name and signature of the console command.

Public Methods

Method Description
__construct ( ) : void Create a new command instance.
askValidation ( string $question, string $default = null, callable $validator = null ) : string Prompt the user for input and validation the answer.
handle ( ) : mixed Execute the console command
secretDefault ( string $question, boolean $fallback = true, string $default = null ) : string Prompt the user for input but hide the answer from the console.

Protected Methods

Method Description
createAdminAndLogin ( array $config ) : void createAdminAndLogin
installFramework ( ) : void installFramework
process ( ) : void process
stepAdmin ( ) : void stepAdmin
stepAgreeCollectEnv ( )
stepDB ( ) : void stepDB
stepDirPermission ( ) : void stepDirPermission
stepRequirement ( )
stepSiteInfo ( ) : void stepSiteInfo

Private Methods

Method Description
bootFramework ( boolean $withXE = false ) : mixed bootFramework
configFileGenerate ( string $key, array $data ) : void configFileGenerate
disableDebugMode ( ) : void disableDebugMode
encodeArr2Str ( array $arr, integer $depth ) : string encodeArr2Str
getAdminInfo ( ) : void getAdminInfo
getAdminPassword ( array $adminInfo ) : string getAdminPassword
getBasePath ( null $path = null ) : string basePath
getDBInfo ( ) : void getDBInfo
getIndent ( integer $depth ) : string getIndent
getKey ( )
getRandomKey ( string $cipher ) : string Generate a random key for the application.
getSiteInfo ( ) : void getSiteInfo
initializeCore ( ) : void initializeCore
installBasePlugins ( ) : void installBasePlugins
makeDir ( string $dir ) : boolean makeDir
markInstalled ( ) : void markInstalled
migrateCore ( ) : void migrateCore
setBootCacheDirPermission ( ) : void setBootCacheDirPermission
setDBInfo ( array $dbInfo ) : void setDBInfo
setSiteInfo ( $siteInfo, $debug = true ) : void setSiteInfo
setStorageDirPermission ( ) : void setStorageDirPermission
validateDBInfo ( array $dbInfo ) : boolean validateDBInfo

Method Details

__construct() public method

Create a new command instance.
public __construct ( ) : void
return void

askValidation() public method

Prompt the user for input and validation the answer.
public askValidation ( string $question, string $default = null, callable $validator = null ) : string
$question string
$default string
$validator callable
return string

createAdminAndLogin() protected method

createAdminAndLogin
protected createAdminAndLogin ( array $config ) : void
$config array
return void

handle() public method

Execute the console command
public handle ( ) : mixed
return mixed

installFramework() protected method

installFramework
protected installFramework ( ) : void
return void

process() protected method

process
protected process ( ) : void
return void

secretDefault() public method

Prompt the user for input but hide the answer from the console.
public secretDefault ( string $question, boolean $fallback = true, string $default = null ) : string
$question string
$fallback boolean
$default string
return string

stepAdmin() protected method

stepAdmin
protected stepAdmin ( ) : void
return void

stepAgreeCollectEnv() protected method

protected stepAgreeCollectEnv ( )

stepDB() protected method

stepDB
protected stepDB ( ) : void
return void

stepDirPermission() protected method

stepDirPermission
protected stepDirPermission ( ) : void
return void

stepRequirement() protected method

protected stepRequirement ( )

stepSiteInfo() protected method

stepSiteInfo
protected stepSiteInfo ( ) : void
return void

Property Details

$appKey protected_oe property

protected $appKey

$basePlugins protected_oe property

protected array $basePlugins
return array

$defaultInfos protected_oe property

protected array $defaultInfos
return array

$description protected_oe property

The console command description.
protected string $description
return string

$executed protected_oe property

protected bool $executed
return boolean

$migrations protected_oe property

protected $migrations

$signature protected_oe property

The name and signature of the console command.
protected string $signature
return string