Свойство | Тип | Описание | |
---|---|---|---|
$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 |
Свойство | Тип | Описание | |
---|---|---|---|
$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 ( ) : |
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 |
public __construct ( Illuminate\Container\Container $app ) | ||
$app | Illuminate\Container\Container |
protected askAboutDatabaseHost ( [type] $default ) : [type] | ||
$default | [type] | |
Результат | [type] |
protected askAboutDatabaseMigrations ( boolean $default ) : boolean | ||
$default | boolean | |
Результат | boolean |
protected askAboutDatabaseName ( [type] $default ) : [type] | ||
$default | [type] | |
Результат | [type] |
protected askAboutDatabasePass ( [type] $default ) : [type] | ||
$default | [type] | |
Результат | [type] |
protected askAboutDatabaseSeeds ( boolean $default ) : boolean | ||
$default | boolean | |
Результат | boolean |
protected askAboutDatabaseType ( $default ) : [type] | ||
Результат | [type] |
protected askAboutDatabaseUser ( [type] $default ) : [type] | ||
$default | [type] | |
Результат | [type] |
public changeDatabaseConfigFile ( ) : void | ||
Результат | void |
public changeEmailConfigFile ( ) : void | ||
Результат | void |
protected env ( [type] $setting, [type] $default = null ) : [type] | ||
$setting | [type] | |
$default | [type] | |
Результат | [type] |
protected io ( ) : |
||
Результат |
protected runApplicationMigrations ( ) : void | ||
Результат | void |
protected runApplicationSeeds ( ) : void | ||
Результат | void |
public runInstallCommands ( ) : void | ||
Результат | void |
protected setupAdminUser ( ) : [type] | ||
Результат | [type] |
protected setupAppName ( ) : [type] | ||
Результат | [type] |
protected setupConfigOverrides ( ) : [type] | ||
Результат | [type] |
protected setupDatabase ( ) : [type] | ||
Результат | [type] |
protected setupEnvironment ( ) : [type] | ||
Результат | [type] |
protected spitOutErrors ( [type] $messages ) : [type] | ||
$messages | [type] | |
Результат | [type] |
protected wizard ( ) : InstallWizard | ||
Результат | InstallWizard |
protected $description |
public Devise\Support\Console\DeviseInstallCommand $io | ||
Результат | Devise\Support\Console\DeviseInstallCommand |