3 namespace Illuminate\Contracts\Foundation
;
5 use Illuminate\Contracts\Container\Container
;
7 interface Application
extends Container
10 * Get the version number of the application.
14 public function version();
17 * Get the base path of the Laravel installation.
21 public function basePath();
24 * Get or check the current application environment.
28 public function environment();
31 * Determine if we are running in the console.
35 public function runningInConsole();
38 * Determine if the application is currently down for maintenance.
42 public function isDownForMaintenance();
45 * Register all of the configured providers.
49 public function registerConfiguredProviders();
52 * Register a service provider with the application.
54 * @param \Illuminate\Support\ServiceProvider|string $provider
55 * @param array $options
57 * @return \Illuminate\Support\ServiceProvider
59 public function register($provider, $options = [], $force = false);
62 * Register a deferred provider and service.
64 * @param string $provider
65 * @param string|null $service
68 public function registerDeferredProvider($provider, $service = null);
71 * Boot the application's service providers.
75 public function boot();
78 * Register a new boot listener.
80 * @param mixed $callback
83 public function booting($callback);
86 * Register a new "booted" listener.
88 * @param mixed $callback
91 public function booted($callback);
94 * Get the path to the cached services.php file.
98 public function getCachedServicesPath();
101 * Get the path to the cached packages.php file.
105 public function getCachedPackagesPath();