MaintenanceMode.php 715 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace Illuminate\Contracts\Foundation;
  3. interface MaintenanceMode
  4. {
  5. /**
  6. * Take the application down for maintenance.
  7. *
  8. * @param array $payload
  9. * @return void
  10. */
  11. public function activate(array $payload): void;
  12. /**
  13. * Take the application out of maintenance.
  14. *
  15. * @return void
  16. */
  17. public function deactivate(): void;
  18. /**
  19. * Determine if the application is currently down for maintenance.
  20. *
  21. * @return bool
  22. */
  23. public function active(): bool;
  24. /**
  25. * Get the data array which was provided when the application was placed into maintenance.
  26. *
  27. * @return array
  28. */
  29. public function data(): array;
  30. }