WinterInstall
Console command to install Winter.
class System\Console\WinterInstall
extends Illuminate\Console\Command
This sets up Winter for the first time. It will prompt the user for several configuration items, including application URL and database config, and then perform a database migration.
Traits
Trait | Description |
---|---|
Illuminate\Console\ConfirmableTrait
|
Properties
protected $configWriter : Winter\Storm\Config\ConfigWriter
protected
$description
:
mixed
= "Set up Winter for the first time."
The console command description.
protected
$name
:
mixed
= "winter:install"
The console command name.
Methods
public __construct ()
Create a new command instance.
Returns
mixed
public handle ()
Execute the console command.
Returns
mixed
protected askToInstallPlugins ()
Returns
mixed
protected displayIntro ()
Returns
mixed
protected displayOutro ()
Returns
mixed
protected
getConfigFile (string $name = "app"
)
: array
Get a config file and contents.
Parameters
Property | Type | Description |
---|---|---|
$name | string |
string
|
Returns
array
protected getKeyLength (string $cipher) : int
Returns the supported length of a key for a cipher.
Parameters
Property | Type | Description |
---|---|---|
$cipher | string |
string
|
Returns
int
protected getOptions () : array
Get the console command options.
Returns
array
protected getRandomKey (string $cipher) : string
Generate a random key for the application.
Parameters
Property | Type | Description |
---|---|---|
$cipher | string |
string
|
Returns
string
protected setupAdminUser ()
Returns
mixed
protected setupAdvancedValues ()
Returns
mixed
protected setupBackendValues ()
Returns
mixed
protected setupCommonValues ()
Returns
mixed
protected setupDatabaseConfig ()
Returns
mixed
protected setupDatabaseMysql ()
Returns
mixed
protected setupDatabasePgsql ()
Returns
mixed
protected setupDatabaseSqlite ()
Returns
mixed
protected setupDatabaseSqlsrv ()
Returns
mixed
protected
setupEncryptionKey (boolean $force = false
)
Parameters
Property | Type | Description |
---|---|---|
$force | boolean |
boolean
|
Returns
mixed
protected setupMigrateDatabase ()
Returns
mixed
protected writeToConfig ($file, $values)
Parameters
Property | Type | Description |
---|---|---|
$file | mixed |
mixed
|
$values | mixed |
mixed
|
Returns
mixed
Copyright © 2023 Winter CMS