PHP Класс Devise\Support\Console\DeviseInstallCommand

Наследование: extends Command
Показать файл Открыть проект

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

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

Свойство Тип Описание
$description Necessary to let people know, in case the name wasn't clear enough.
$name Name of the command.

Открытые методы

Метод Описание
__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

Защищенные методы

Метод Описание
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

Описание методов

__construct() публичный Метод

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

askAboutDatabaseHost() защищенный Метод

[askAboutDatabaseHost description]
protected askAboutDatabaseHost ( [type] $default ) : [type]
$default [type]
Результат [type]

askAboutDatabaseMigrations() защищенный Метод

Prompt for executing database migrations
protected askAboutDatabaseMigrations ( boolean $default ) : boolean
$default boolean
Результат boolean

askAboutDatabaseName() защищенный Метод

[askAboutDatabaseName description]
protected askAboutDatabaseName ( [type] $default ) : [type]
$default [type]
Результат [type]

askAboutDatabasePass() защищенный Метод

[askAboutDatabasePass description]
protected askAboutDatabasePass ( [type] $default ) : [type]
$default [type]
Результат [type]

askAboutDatabaseSeeds() защищенный Метод

Prompt for executing database seeds
protected askAboutDatabaseSeeds ( boolean $default ) : boolean
$default boolean
Результат boolean

askAboutDatabaseType() защищенный Метод

[askAboutDatabase description]
protected askAboutDatabaseType ( $default ) : [type]
Результат [type]

askAboutDatabaseUser() защищенный Метод

[askAboutDatabaseUser description]
protected askAboutDatabaseUser ( [type] $default ) : [type]
$default [type]
Результат [type]

changeDatabaseConfigFile() публичный Метод

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
Результат void

changeEmailConfigFile() публичный Метод

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
Результат void

env() защищенный Метод

[env description]
protected env ( [type] $setting, [type] $default = null ) : [type]
$setting [type]
$default [type]
Результат [type]

handle() публичный Метод

Run the package migrations.
public handle ( )

io() защищенный Метод

The input output handler (used this way for mocking)
protected io ( ) : DeviseInstallCommand
Результат DeviseInstallCommand

runApplicationMigrations() защищенный Метод

Runs the application migrations
protected runApplicationMigrations ( ) : void
Результат void

runApplicationSeeds() защищенный Метод

Runs the application seeds
protected runApplicationSeeds ( ) : void
Результат void

runInstallCommands() публичный Метод

Runs the install commands for migrations, seeds, publishing assets and configs
public runInstallCommands ( ) : void
Результат void

setupAdminUser() защищенный Метод

[setupAdminUser description]
protected setupAdminUser ( ) : [type]
Результат [type]

setupAppName() защищенный Метод

[setupAppName description]
protected setupAppName ( ) : [type]
Результат [type]

setupConfigOverrides() защищенный Метод

[setupConfigOverrides description]
protected setupConfigOverrides ( ) : [type]
Результат [type]

setupDatabase() защищенный Метод

[setupDatabase description]
protected setupDatabase ( ) : [type]
Результат [type]

setupEnvironment() защищенный Метод

[askAboutEnvironment description]
protected setupEnvironment ( ) : [type]
Результат [type]

spitOutErrors() защищенный Метод

[spitOutErrors description]
protected spitOutErrors ( [type] $messages ) : [type]
$messages [type]
Результат [type]

wizard() защищенный Метод

The wizard for the installer
protected wizard ( ) : InstallWizard
Результат InstallWizard

Описание свойств

$description защищенное свойство

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

$envMock публичное свойство

Mocks the environment
public Mockery $envMock
Результат Mockery

$io публичное свойство

This input output object for writing to console
public Devise\Support\Console\DeviseInstallCommand $io
Результат Devise\Support\Console\DeviseInstallCommand

$name защищенное свойство

Name of the command.
protected $name

$wizard публичное свойство

The Devise install wizard
public Devise\Support\Installer\InstallWizard $wizard
Результат Devise\Support\Installer\InstallWizard