/**
     * Uninstall Magento application
     *
     * @return void
     */
    public function uninstall()
    {
        $this->log->log('Starting Magento uninstallation:');

        $this->cleanCaches();
        $this->cleanupDb();

        $this->log->log('File system cleanup:');
        $messages = $this->cleanupFiles->clearAllFiles();
        foreach ($messages as $message) {
            $this->log->log($message);
        }

        $this->deleteDeploymentConfig();

        $this->log->logSuccess('Magento uninstallation complete.');
    }
Esempio n. 2
0
 /**
  * Uninstall Magento application
  *
  * @return void
  */
 public function uninstall()
 {
     $this->log->log('Starting Magento uninstallation:');
     try {
         $this->cleanCaches();
     } catch (\Exception $e) {
         $this->log->log('Can\'t clear cache due to the following error: ' . $e->getMessage() . PHP_EOL . 'To fully clean up your uninstallation, you must manually clear your cache.');
     }
     $this->cleanupDb();
     $this->log->log('File system cleanup:');
     $messages = $this->cleanupFiles->clearAllFiles();
     foreach ($messages as $message) {
         $this->log->log($message);
     }
     $this->deleteDeploymentConfig();
     $this->log->logSuccess('Magento uninstallation complete.');
 }