コード例 #1
0
ファイル: InstallCommand.php プロジェクト: Houbsi/Core
 /**
  * Execute the actions
  *
  * @return mixed
  */
 public function fire()
 {
     $this->blockMessage('Welcome!', 'Starting the installation process...', 'comment');
     $success = $this->installer->stack(['Modules\\Core\\Console\\Installers\\Scripts\\ProtectInstaller', 'Modules\\Core\\Console\\Installers\\Scripts\\ConfigureDatabase', 'Modules\\Core\\Console\\Installers\\Scripts\\SetAppKey', 'Modules\\Core\\Console\\Installers\\Scripts\\ConfigureUserProvider', 'Modules\\Core\\Console\\Installers\\Scripts\\ModuleMigrator', 'Modules\\Core\\Console\\Installers\\Scripts\\ModuleSeeders', 'Modules\\Core\\Console\\Installers\\Scripts\\ModuleAssets', 'Modules\\Core\\Console\\Installers\\Scripts\\ThemeAssets'])->install($this);
     if ($success) {
         $this->info('Platform ready! You can now login with your username and password at /backend');
     }
 }
コード例 #2
0
ファイル: InstallCommand.php プロジェクト: SocietyCMS/Core
 /**
  * Execute the actions.
  *
  * @return mixed
  */
 public function fire()
 {
     $this->blockMessage('Welcome!', 'Starting the installation process...', 'comment');
     $success = $this->installer->stack([\Modules\Core\Console\Installers\Scripts\ProtectInstaller::class, \Modules\Core\Console\Installers\Scripts\RequirementsCheck::class, \Modules\Core\Console\Installers\Scripts\ResetEnvironment::class, \Modules\Core\Console\Installers\Scripts\ConfigureDatabase::class, \Modules\Core\Console\Installers\Scripts\SetAppKey::class, \Modules\Core\Console\Installers\Scripts\ModuleMigrator::class, \Modules\Core\Console\Installers\Scripts\ModuleSeeders::class, \Modules\Core\Console\Installers\Scripts\ModuleAssets::class, \Modules\Core\Console\Installers\Scripts\ThemeAssets::class, \Modules\Core\Console\Installers\Scripts\AdminUserInstaller::class, \Modules\Core\Console\Installers\Scripts\UnignoreComposerLock::class, \Modules\Core\Console\Installers\Scripts\SocietyIsInstalled::class])->install($this);
     if ($success) {
         $this->blockMessage('SocietyCMS is ready', 'You can now login with your username and password at /backend', 'fg=black;bg=green;options=bold');
     }
 }