Application.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <?php
  2. namespace Illuminate\Contracts\Foundation;
  3. use Illuminate\Contracts\Container\Container;
  4. interface Application extends Container
  5. {
  6. /**
  7. * Get the version number of the application.
  8. *
  9. * @return string
  10. */
  11. public function version();
  12. /**
  13. * Get the base path of the Laravel installation.
  14. *
  15. * @return string
  16. */
  17. public function basePath();
  18. /**
  19. * Get or check the current application environment.
  20. *
  21. * @return string
  22. */
  23. public function environment();
  24. /**
  25. * Determine if we are running in the console.
  26. *
  27. * @return bool
  28. */
  29. public function runningInConsole();
  30. /**
  31. * Determine if the application is currently down for maintenance.
  32. *
  33. * @return bool
  34. */
  35. public function isDownForMaintenance();
  36. /**
  37. * Register all of the configured providers.
  38. *
  39. * @return void
  40. */
  41. public function registerConfiguredProviders();
  42. /**
  43. * Register a service provider with the application.
  44. *
  45. * @param \Illuminate\Support\ServiceProvider|string $provider
  46. * @param array $options
  47. * @param bool $force
  48. * @return \Illuminate\Support\ServiceProvider
  49. */
  50. public function register($provider, $options = [], $force = false);
  51. /**
  52. * Register a deferred provider and service.
  53. *
  54. * @param string $provider
  55. * @param string|null $service
  56. * @return void
  57. */
  58. public function registerDeferredProvider($provider, $service = null);
  59. /**
  60. * Boot the application's service providers.
  61. *
  62. * @return void
  63. */
  64. public function boot();
  65. /**
  66. * Register a new boot listener.
  67. *
  68. * @param mixed $callback
  69. * @return void
  70. */
  71. public function booting($callback);
  72. /**
  73. * Register a new "booted" listener.
  74. *
  75. * @param mixed $callback
  76. * @return void
  77. */
  78. public function booted($callback);
  79. /**
  80. * Get the path to the cached services.php file.
  81. *
  82. * @return string
  83. */
  84. public function getCachedServicesPath();
  85. /**
  86. * Get the path to the cached packages.php file.
  87. *
  88. * @return string
  89. */
  90. public function getCachedPackagesPath();
  91. }