PHP 클래스 Devise\Support\Installer\InstallWizard

파일 보기 프로젝트 열기: devisephp/cms

공개 프로퍼티들

프로퍼티 타입 설명
$errors [type] [$errors description]

보호된 프로퍼티들

프로퍼티 타입 설명
$DatabaseCreator [type] [$DatabaseCreator description]
$DvsUser [type] [$DvsUser description]
$EnvironmentFileManager [type] [$EnvironmentFileManager description]
$File [type] [$File description]
$SettingsManager [type] [$SettingsManager description]
$Validator [type] [$Validator description]

공개 메소드들

메소드 설명
__construct ( SettingsManager $SettingsManager, EnvironmentFileManager $EnvironmentFileManager, Framework $Framework, DatabaseCreator $DatabaseCreator, DeviseInstallCommand $DeviseInstallCommand, DevisePublishAssetsCommand $DevisePublishAssetsCommand, DvsUser $DvsUser, DvsGroup $DvsGroup ) Creats a new Install Wizard.
checkAssets ( ) : [type] [checkAssets description]
createAdminUser ( string $email, $username, string $password ) : DvsUser Create the admin user for the installer. This will create the user with the email and password given and then it will also put that user into the admin group
installAssets ( ) : [type] [installAssets description]
installDevise ( ) : void [installDevise description]
refreshEnvironment ( array $settings = [] ) : void Reloads env settings and also updates the configurations in Laravel for anything that might change during the install process. Things like app.key, app.debug, database stuff, mail stuff, cache and session settings.
saveApplicationMigrationAndSeedSettings ( [type] $migrations, [type] $seeds ) : [type] Save the migration and seed settings
saveApplicationNamespace ( string $appName ) : void Saves this app name
saveConfigsOverride ( $value = 'no' ) : void Save input value submitted for "configs_override" to the key "CONFIGS_OVERRIDE" in .env file
saveDatabase ( string $default, string $host, string $name, string $username, string $password ) Saves the database settings for us
saveEnvironment ( string $env ) : void Saves the environment for us
saveNewApplicationKey ( ) : void Saves the new application key if there isn't already one set We need this set early on so it doesn't screw up our tokens and password hashes.
validateAdminUser ( string $email, $username, string $password ) : void Validates the admin user data for us

보호된 메소드들

메소드 설명
createDatabaseWithSettings ( array $settings ) : boolean create the database with given settings, this will attempt to create the database with the given name. this will work for users that are using a root level access account to connect to mysql. won't work for lower level access though.
isValidDatabaseSettings ( array $settings ) : boolean see if we can connect to the database with these settings

메소드 상세

__construct() 공개 메소드

..
public __construct ( SettingsManager $SettingsManager, EnvironmentFileManager $EnvironmentFileManager, Framework $Framework, DatabaseCreator $DatabaseCreator, DeviseInstallCommand $DeviseInstallCommand, DevisePublishAssetsCommand $DevisePublishAssetsCommand, DvsUser $DvsUser, DvsGroup $DvsGroup )
$SettingsManager Devise\Support\Config\SettingsManager
$EnvironmentFileManager Devise\Support\Config\EnvironmentFileManager
$Framework Devise\Support\Framework
$DatabaseCreator DatabaseCreator
$DeviseInstallCommand Devise\Support\Console\DeviseInstallCommand
$DevisePublishAssetsCommand Devise\Support\Console\DevisePublishAssetsCommand
$DvsUser DvsUser
$DvsGroup DvsGroup

checkAssets() 공개 메소드

[checkAssets description]
public checkAssets ( ) : [type]
리턴 [type]

createAdminUser() 공개 메소드

Create the admin user for the installer. This will create the user with the email and password given and then it will also put that user into the admin group
public createAdminUser ( string $email, $username, string $password ) : DvsUser
$email string
$password string
리턴 DvsUser

createDatabaseWithSettings() 보호된 메소드

create the database with given settings, this will attempt to create the database with the given name. this will work for users that are using a root level access account to connect to mysql. won't work for lower level access though.
protected createDatabaseWithSettings ( array $settings ) : boolean
$settings array
리턴 boolean

installAssets() 공개 메소드

[installAssets description]
public installAssets ( ) : [type]
리턴 [type]

installDevise() 공개 메소드

[installDevise description]
public installDevise ( ) : void
리턴 void

isValidDatabaseSettings() 보호된 메소드

see if we can connect to the database with these settings
protected isValidDatabaseSettings ( array $settings ) : boolean
$settings array
리턴 boolean

refreshEnvironment() 공개 메소드

.. this is a hack for people who use php artisan serve ... no one else really needs this hackery...
public refreshEnvironment ( array $settings = [] ) : void
$settings array
리턴 void

saveApplicationMigrationAndSeedSettings() 공개 메소드

Save the migration and seed settings
public saveApplicationMigrationAndSeedSettings ( [type] $migrations, [type] $seeds ) : [type]
$migrations [type]
$seeds [type]
리턴 [type]

saveApplicationNamespace() 공개 메소드

Saves this app name
public saveApplicationNamespace ( string $appName ) : void
$appName string
리턴 void

saveConfigsOverride() 공개 메소드

Save input value submitted for "configs_override" to the key "CONFIGS_OVERRIDE" in .env file
public saveConfigsOverride ( $value = 'no' ) : void
리턴 void

saveDatabase() 공개 메소드

Saves the database settings for us
public saveDatabase ( string $default, string $host, string $name, string $username, string $password )
$default string
$host string
$name string
$username string
$password string

saveEnvironment() 공개 메소드

Saves the environment for us
public saveEnvironment ( string $env ) : void
$env string
리턴 void

saveNewApplicationKey() 공개 메소드

Saves the new application key if there isn't already one set We need this set early on so it doesn't screw up our tokens and password hashes.
public saveNewApplicationKey ( ) : void
리턴 void

validateAdminUser() 공개 메소드

Validates the admin user data for us
public validateAdminUser ( string $email, $username, string $password ) : void
$email string
$password string
리턴 void

프로퍼티 상세

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

[$DatabaseCreator description]
protected [type] $DatabaseCreator
리턴 [type]

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

[$DvsUser description]
protected [type] $DvsUser
리턴 [type]

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

[$EnvironmentFileManager description]
protected [type] $EnvironmentFileManager
리턴 [type]

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

[$File description]
protected [type] $File
리턴 [type]

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

[$SettingsManager description]
protected [type] $SettingsManager
리턴 [type]

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

[$Validator description]
protected [type] $Validator
리턴 [type]

$errors 공개적으로 프로퍼티

[$errors description]
public [type] $errors
리턴 [type]