Skip to content

Commit

Permalink
Merge pull request bagisto#8894 from jitendra-webkul/master
Browse files Browse the repository at this point in the history
Added installation event to installer
  • Loading branch information
jitendra-webkul authored Nov 3, 2023
2 parents 6cd5430 + 71be6cb commit 634e5b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/Webkul/Installer/src/Console/Commands/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\File;

class Installer extends Command
Expand Down Expand Up @@ -225,6 +226,8 @@ protected function createAdminCredential()
$this->info('Email: ' . $adminEmail);
$this->info('Password: ' . $adminPassword);
$this->info('Cheers!');

Event::dispatch('bagisto.installed');
} catch (\Exception $e) {
return $this->error($e->getMessage());
}
Expand Down

0 comments on commit 634e5b3

Please sign in to comment.