107 lines
2.2 KiB
PHP
107 lines
2.2 KiB
PHP
<?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 we are running in the console.
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function runningInConsole();
|
|
|
|
/**
|
|
* 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();
|
|
}
|