blob: 4c948f702d8edf74b2b935c50f196004d5b9a611 [file] [log] [blame]
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01001<?php
2
3namespace Illuminate\Contracts\Foundation;
4
5interface MaintenanceMode
6{
7 /**
8 * Take the application down for maintenance.
9 *
10 * @param array $payload
11 * @return void
12 */
13 public function activate(array $payload): void;
14
15 /**
16 * Take the application out of maintenance.
17 *
18 * @return void
19 */
20 public function deactivate(): void;
21
22 /**
23 * Determine if the application is currently down for maintenance.
24 *
25 * @return bool
26 */
27 public function active(): bool;
28
29 /**
30 * Get the data array which was provided when the application was placed into maintenance.
31 *
32 * @return array
33 */
34 public function data(): array;
35}