Property | 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 |
Property | Type | Description | |
---|---|---|---|
$description | Necessary to let people know, in case the name wasn't clear enough. | ||
$name | Name of the command. |
Method | 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 |
Method | 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 ( ) : |
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] | |
return | [type] |
protected askAboutDatabaseMigrations ( boolean $default ) : boolean | ||
$default | boolean | |
return | boolean |
protected askAboutDatabaseName ( [type] $default ) : [type] | ||
$default | [type] | |
return | [type] |
protected askAboutDatabasePass ( [type] $default ) : [type] | ||
$default | [type] | |
return | [type] |
protected askAboutDatabaseSeeds ( boolean $default ) : boolean | ||
$default | boolean | |
return | boolean |
protected askAboutDatabaseType ( $default ) : [type] | ||
return | [type] |
protected askAboutDatabaseUser ( [type] $default ) : [type] | ||
$default | [type] | |
return | [type] |
public changeDatabaseConfigFile ( ) : void | ||
return | void |
public changeEmailConfigFile ( ) : void | ||
return | void |
protected env ( [type] $setting, [type] $default = null ) : [type] | ||
$setting | [type] | |
$default | [type] | |
return | [type] |
protected io ( ) : |
||
return |
protected runApplicationMigrations ( ) : void | ||
return | void |
protected runApplicationSeeds ( ) : void | ||
return | void |
public runInstallCommands ( ) : void | ||
return | void |
protected setupAdminUser ( ) : [type] | ||
return | [type] |
protected setupAppName ( ) : [type] | ||
return | [type] |
protected setupConfigOverrides ( ) : [type] | ||
return | [type] |
protected setupDatabase ( ) : [type] | ||
return | [type] |
protected setupEnvironment ( ) : [type] | ||
return | [type] |
protected spitOutErrors ( [type] $messages ) : [type] | ||
$messages | [type] | |
return | [type] |
protected wizard ( ) : InstallWizard | ||
return | InstallWizard |
protected $description |
public Devise\Support\Console\DeviseInstallCommand $io | ||
return | Devise\Support\Console\DeviseInstallCommand |