Skip to content

Commit 5f89ab0

Browse files
instantiate maintenance mode events (#44417)
1 parent fa0b45c commit 5f89ab0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Illuminate/Foundation/Console/DownCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function handle()
6464
file_get_contents(__DIR__.'/stubs/maintenance-mode.stub')
6565
);
6666

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

6969
$this->components->info('Application is now in maintenance mode.');
7070
} catch (Exception $e) {

src/Illuminate/Foundation/Console/UpCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function handle()
5555
unlink(storage_path('framework/maintenance.php'));
5656
}
5757

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

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

0 commit comments

Comments
 (0)