PHP Класс Devise\Support\Installer\InstallWizard

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$errors [type] [$errors description]

Защищенные свойства (Protected)

Свойство Тип Описание
$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]