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

Properties

protected $configWriter : Winter\Storm\Config\ConfigWriter

protected $description : mixed

The console command description.

protected $name : mixed

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 Description
$name
string
Returns
array

protected getKeyLength (string $cipher) : int

Returns the supported length of a key for a cipher.

Parameters
Property Description
$cipher
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 Description
$cipher
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 Description
$force
boolean
Returns
mixed

protected setupMigrateDatabase ()

Returns
mixed

protected writeToConfig ($file, $values)

Parameters
Property Description
$file
mixed
$values
mixed
Returns
mixed
Copyright © 2024 Winter CMS