Skip to content

Commit

Permalink
instantiate maintenance mode events (#44417)
Browse files Browse the repository at this point in the history
  • Loading branch information
lioneaglesolutions authored Oct 3, 2022
1 parent fa0b45c commit 5f89ab0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Console/DownCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function handle()
file_get_contents(__DIR__.'/stubs/maintenance-mode.stub')
);

$this->laravel->get('events')->dispatch(MaintenanceModeEnabled::class);
$this->laravel->get('events')->dispatch(new MaintenanceModeEnabled());

$this->components->info('Application is now in maintenance mode.');
} catch (Exception $e) {
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Console/UpCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function handle()
unlink(storage_path('framework/maintenance.php'));
}

$this->laravel->get('events')->dispatch(MaintenanceModeDisabled::class);
$this->laravel->get('events')->dispatch(new MaintenanceModeDisabled());

$this->components->info('Application is now live.');
} catch (Exception $e) {
Expand Down

0 comments on commit 5f89ab0

Please sign in to comment.