123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- <?php
-
- namespace Illuminate\Contracts\Foundation;
-
- use Illuminate\Contracts\Container\Container;
-
- interface Application extends Container
- {
- /**
- * Get the version number of the application.
- *
- * @return string
- */
- public function version();
-
- /**
- * Get the base path of the Laravel installation.
- *
- * @return string
- */
- public function basePath();
-
- /**
- * Get or check the current application environment.
- *
- * @return string
- */
- public function environment();
-
- /**
- * Determine if the application is running in the console.
- *
- * @return bool
- */
- public function runningInConsole();
-
- /**
- * Determine if the application is running unit tests.
- *
- * @return bool
- */
- public function runningUnitTests();
-
- /**
- * Determine if the application is currently down for maintenance.
- *
- * @return bool
- */
- public function isDownForMaintenance();
-
- /**
- * Register all of the configured providers.
- *
- * @return void
- */
- public function registerConfiguredProviders();
-
- /**
- * Register a service provider with the application.
- *
- * @param \Illuminate\Support\ServiceProvider|string $provider
- * @param array $options
- * @param bool $force
- * @return \Illuminate\Support\ServiceProvider
- */
- public function register($provider, $options = [], $force = false);
-
- /**
- * Register a deferred provider and service.
- *
- * @param string $provider
- * @param string|null $service
- * @return void
- */
- public function registerDeferredProvider($provider, $service = null);
-
- /**
- * Boot the application's service providers.
- *
- * @return void
- */
- public function boot();
-
- /**
- * Register a new boot listener.
- *
- * @param mixed $callback
- * @return void
- */
- public function booting($callback);
-
- /**
- * Register a new "booted" listener.
- *
- * @param mixed $callback
- * @return void
- */
- public function booted($callback);
-
- /**
- * Get the path to the cached services.php file.
- *
- * @return string
- */
- public function getCachedServicesPath();
-
- /**
- * Get the path to the cached packages.php file.
- *
- * @return string
- */
- public function getCachedPackagesPath();
- }
|