コード例 #1
0
ファイル: Release.php プロジェクト: 0x4/sw-cli-tools
 /**
  * @param InstallationRequest $request
  */
 public function installShopware(InstallationRequest $request)
 {
     $this->releaseDownloader->downloadRelease($request->release, $request->installDir);
     $this->generateVcsMapping($request->installDir);
     $this->writeShopwareConfig($request->installDir, $request->databaseName);
     $this->setupDatabase($request);
     $this->lockInstaller($request->installDir);
     $this->ioService->writeln("<info>Running post release scripts</info>");
     $this->postInstall->fixPermissions($request->installDir);
     $this->postInstall->setupTheme($request->installDir);
     $this->postInstall->importCustomDeltas($request->databaseName);
     $this->postInstall->runCustomScripts($request->installDir);
     $this->demodata->runLicenseImport($request->installDir);
     $this->ioService->writeln("<info>Install completed</info>");
 }
コード例 #2
0
ファイル: Release.php プロジェクト: shopwarelabs/sw-cli-tools
 /**
  * @param InstallationRequest $request
  */
 public function installShopware(InstallationRequest $request)
 {
     $this->releaseDownloader->downloadRelease($request->getRelease(), $request->getInstallDir());
     if ($request->getRelease() === 'latest' || version_compare($request->getRelease(), '5.1.2', '>=')) {
         $this->createDatabase($request);
         $this->createShopwareConfig($request);
         $this->runInstaller($request);
     } else {
         $this->generateVcsMapping($request->getAbsoluteInstallDir());
         $this->createShopwareConfig($request);
         $this->setupDatabase($request);
         $this->lockInstaller($request->getAbsoluteInstallDir());
     }
     $this->ioService->writeln("<info>Running post release scripts</info>");
     $this->postInstall->fixPermissions($request->getAbsoluteInstallDir());
     $this->postInstall->setupTheme($request->getAbsoluteInstallDir());
     $this->postInstall->importCustomDeltas($request->getDbName());
     $this->postInstall->runCustomScripts($request->getAbsoluteInstallDir());
     $this->demodata->runLicenseImport($request->getAbsoluteInstallDir());
     $this->ioService->writeln("<info>Install completed</info>");
 }