PHP 클래스 REBELinBLUE\Deployer\Console\Commands\InstallApp

TODO: Refactor the validator to reduce duplication TODO: Move the writing the env file to another class.
상속: extends Illuminate\Console\Command, use trait REBELinBLUE\Deployer\Console\Commands\Traits\AskAndValidate
파일 보기 프로젝트 열기: rebelinblue/deployer 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$description string The console command description.
$signature string The name and signature of the console command.

공개 메소드들

메소드 설명
__construct ( REBELinBLUE\Deployer\Contracts\Repositories\UserRepositoryInterface $repository = null ) InstallApp constructor.
handle ( ) : mixed Execute the console command.

보호된 메소드들

메소드 설명
block ( string | array $messages, string $type = 'error' ) A wrapper around symfony's formatter helper to output a block.
checkRequirements ( ) : boolean Checks the system meets all the requirements needed to run Deployer.
clearCaches ( ) Clears all Laravel caches.
generateJWTKey ( ) : string Generates a key for JWT.
header ( string $header ) Outputs a header block.
migrate ( boolean $seed = false ) Calls the artisan migrate to set up the database in development mode it also seeds the DB.
optimize ( ) Runs the artisan optimize commands.
writeEnvFile ( array $input ) : boolean Writes the configuration data to the config file.

비공개 메소드들

메소드 설명
generateKey ( ) Calls the artisan key:generate to set the APP_KEY.
getAdminInformation ( ) : array Prompts for the admin user details.
getDatabaseDrivers ( ) : array Gets an array of available PDO drivers which are supported by Laravel.
getDatabaseInformation ( ) : array Prompts the user for the database connection details.
getEmailInformation ( ) : array Prompts the user for the details for the email setup.
getInstallInformation ( ) : array Prompts the user for the basic setup information.
getLocales ( ) : array Gets a list of the available locales.
getTimezoneLocations ( integer $region ) : array Gets a list of available locations in the supplied region.
getTimezoneRegions ( ) : array Gets a list of timezone regions.
verifyDatabaseDetails ( array $database ) : boolean Verifies that the database connection details are correct.
verifyNotInstalled ( ) : boolean Ensures that Deployer has not been installed yet.

메소드 상세

__construct() 공개 메소드

InstallApp constructor.
public __construct ( REBELinBLUE\Deployer\Contracts\Repositories\UserRepositoryInterface $repository = null )
$repository REBELinBLUE\Deployer\Contracts\Repositories\UserRepositoryInterface

block() 보호된 메소드

A wrapper around symfony's formatter helper to output a block.
protected block ( string | array $messages, string $type = 'error' )
$messages string | array Messages to output
$type string The type of message to output

checkRequirements() 보호된 메소드

Checks the system meets all the requirements needed to run Deployer.
protected checkRequirements ( ) : boolean
리턴 boolean

clearCaches() 보호된 메소드

Clears all Laravel caches.
protected clearCaches ( )

generateJWTKey() 보호된 메소드

Generates a key for JWT.
protected generateJWTKey ( ) : string
리턴 string

handle() 공개 메소드

Execute the console command.
public handle ( ) : mixed
리턴 mixed

header() 보호된 메소드

Outputs a header block.
protected header ( string $header )
$header string The text to output

migrate() 보호된 메소드

Calls the artisan migrate to set up the database in development mode it also seeds the DB.
protected migrate ( boolean $seed = false )
$seed boolean Whether or not to seed the database

optimize() 보호된 메소드

Runs the artisan optimize commands.
protected optimize ( )

writeEnvFile() 보호된 메소드

Writes the configuration data to the config file.
protected writeEnvFile ( array $input ) : boolean
$input array The config data to write
리턴 boolean

프로퍼티 상세

$description 보호되어 있는 프로퍼티

The console command description.
protected string $description
리턴 string

$signature 보호되어 있는 프로퍼티

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