PHP Class Devise\Support\Console\DeviseInstallCommand

Inheritance: extends Command
Afficher le fichier Open project: devisephp/cms

Méthodes publiques

Свойство Type Description
$envMock Mockery Mocks the environment
$io Devise\Support\Console\DeviseInstallCommand This input output object for writing to console
$wizard Devise\Support\Installer\InstallWizard The Devise install wizard

Protected Properties

Свойство Type Description
$description Necessary to let people know, in case the name wasn't clear enough.
$name Name of the command.

Méthodes publiques

Méthode Description
__construct ( Illuminate\Container\Container $app ) Setup the application container as we'll need this for running migrations.
changeDatabaseConfigFile ( ) : void Changes the default out of the box Laravel database config to include other env() settings that we will use in Devise such as 'default' and we also update the sqlite driver stuff
changeEmailConfigFile ( ) : void Changes the email config file out of the box to include devise as the password reminder view instead of the other view
handle ( ) Run the package migrations.
runInstallCommands ( ) : void Runs the install commands for migrations, seeds, publishing assets and configs

Méthodes protégées

Méthode Description
askAboutDatabaseHost ( [type] $default ) : [type] [askAboutDatabaseHost description]
askAboutDatabaseMigrations ( boolean $default ) : boolean Prompt for executing database migrations
askAboutDatabaseName ( [type] $default ) : [type] [askAboutDatabaseName description]
askAboutDatabasePass ( [type] $default ) : [type] [askAboutDatabasePass description]
askAboutDatabaseSeeds ( boolean $default ) : boolean Prompt for executing database seeds
askAboutDatabaseType ( $default ) : [type] [askAboutDatabase description]
askAboutDatabaseUser ( [type] $default ) : [type] [askAboutDatabaseUser description]
env ( [type] $setting, [type] $default = null ) : [type] [env description]
io ( ) : DeviseInstallCommand The input output handler (used this way for mocking)
runApplicationMigrations ( ) : void Runs the application migrations
runApplicationSeeds ( ) : void Runs the application seeds
setupAdminUser ( ) : [type] [setupAdminUser description]
setupAppName ( ) : [type] [setupAppName description]
setupConfigOverrides ( ) : [type] [setupConfigOverrides description]
setupDatabase ( ) : [type] [setupDatabase description]
setupEnvironment ( ) : [type] [askAboutEnvironment description]
spitOutErrors ( [type] $messages ) : [type] [spitOutErrors description]
wizard ( ) : InstallWizard The wizard for the installer

Method Details

__construct() public méthode

Setup the application container as we'll need this for running migrations.
public __construct ( Illuminate\Container\Container $app )
$app Illuminate\Container\Container

askAboutDatabaseHost() protected méthode

[askAboutDatabaseHost description]
protected askAboutDatabaseHost ( [type] $default ) : [type]
$default [type]
Résultat [type]

askAboutDatabaseMigrations() protected méthode

Prompt for executing database migrations
protected askAboutDatabaseMigrations ( boolean $default ) : boolean
$default boolean
Résultat boolean

askAboutDatabaseName() protected méthode

[askAboutDatabaseName description]
protected askAboutDatabaseName ( [type] $default ) : [type]
$default [type]
Résultat [type]

askAboutDatabasePass() protected méthode

[askAboutDatabasePass description]
protected askAboutDatabasePass ( [type] $default ) : [type]
$default [type]
Résultat [type]

askAboutDatabaseSeeds() protected méthode

Prompt for executing database seeds
protected askAboutDatabaseSeeds ( boolean $default ) : boolean
$default boolean
Résultat boolean

askAboutDatabaseType() protected méthode

[askAboutDatabase description]
protected askAboutDatabaseType ( $default ) : [type]
Résultat [type]

askAboutDatabaseUser() protected méthode

[askAboutDatabaseUser description]
protected askAboutDatabaseUser ( [type] $default ) : [type]
$default [type]
Résultat [type]

changeDatabaseConfigFile() public méthode

Changes the default out of the box Laravel database config to include other env() settings that we will use in Devise such as 'default' and we also update the sqlite driver stuff
public changeDatabaseConfigFile ( ) : void
Résultat void

changeEmailConfigFile() public méthode

Changes the email config file out of the box to include devise as the password reminder view instead of the other view
public changeEmailConfigFile ( ) : void
Résultat void

env() protected méthode

[env description]
protected env ( [type] $setting, [type] $default = null ) : [type]
$setting [type]
$default [type]
Résultat [type]

handle() public méthode

Run the package migrations.
public handle ( )

io() protected méthode

The input output handler (used this way for mocking)
protected io ( ) : DeviseInstallCommand
Résultat DeviseInstallCommand

runApplicationMigrations() protected méthode

Runs the application migrations
protected runApplicationMigrations ( ) : void
Résultat void

runApplicationSeeds() protected méthode

Runs the application seeds
protected runApplicationSeeds ( ) : void
Résultat void

runInstallCommands() public méthode

Runs the install commands for migrations, seeds, publishing assets and configs
public runInstallCommands ( ) : void
Résultat void

setupAdminUser() protected méthode

[setupAdminUser description]
protected setupAdminUser ( ) : [type]
Résultat [type]

setupAppName() protected méthode

[setupAppName description]
protected setupAppName ( ) : [type]
Résultat [type]

setupConfigOverrides() protected méthode

[setupConfigOverrides description]
protected setupConfigOverrides ( ) : [type]
Résultat [type]

setupDatabase() protected méthode

[setupDatabase description]
protected setupDatabase ( ) : [type]
Résultat [type]

setupEnvironment() protected méthode

[askAboutEnvironment description]
protected setupEnvironment ( ) : [type]
Résultat [type]

spitOutErrors() protected méthode

[spitOutErrors description]
protected spitOutErrors ( [type] $messages ) : [type]
$messages [type]
Résultat [type]

wizard() protected méthode

The wizard for the installer
protected wizard ( ) : InstallWizard
Résultat InstallWizard

Property Details

$description protected_oe property

Necessary to let people know, in case the name wasn't clear enough.
protected $description

$envMock public_oe property

Mocks the environment
public Mockery $envMock
Résultat Mockery

$io public_oe property

This input output object for writing to console
public Devise\Support\Console\DeviseInstallCommand $io
Résultat Devise\Support\Console\DeviseInstallCommand

$name protected_oe property

Name of the command.
protected $name

$wizard public_oe property

The Devise install wizard
public Devise\Support\Installer\InstallWizard $wizard
Résultat Devise\Support\Installer\InstallWizard