/** * Created by Phan Trung Nguyên. * User: nguyenpl117 * Date: 3/9/2020 * Time: 9:27 PM */ import { Container } from '../Container/Container'; import { ServiceProvider } from '../Support/ServiceProvider'; import { ServiceProviderContract } from '../Contracts/ServiceProviderContract'; import { ApplicationContract } from '../Contracts/ApplicationContract'; export declare class Application extends Container implements ApplicationContract { [key: string]: any; inProduction: boolean; protected _basePath: string; protected serviceProviders: any[]; protected _booted: boolean; protected _bootedCallbacks: any[]; protected _instances: Map; protected _hasBeenBootstrapped: boolean; environment: any; protected _environmentPath: string; protected _environmentFile: string; constructor(basePath?: string); setBasePath(basePath: string): void; basePath(p?: string): string; getBasePath(): string; configPath(): string; protected registerBaseBindings(): void; protected registerBaseServiceProviders(): void; getServiceProviders(): any[]; registerConfiguredProviders(): Promise; bootstrapWith(bootstrappers: any[]): Promise; /** * Determine if the application has been bootstrapped before. */ hasBeenBootstrapped(): boolean; /** * Register a service provider with the application. * * @param provider * @param force */ register(provider: ServiceProviderContract | string, force?: boolean): Promise; markAsRegistered(provider: ServiceProviderContract): void; boot(): Promise; booted(callback: (app: this) => {}): Promise; protected fireAppCallbacks(callbacks: ((app: this) => {})[]): Promise; isBooted(): boolean; bootProvider(provider: ServiceProviderContract): Promise; resolveProvider(providerPath: string): ServiceProvider; flush(): void; environmentPath(): string; useEnvironmentPath(path: string): this; loadEnvironmentFrom(file: string): void; environmentFile(): string; environmentFilePath(): string; /** * Determine if the application is running unit tests. */ runningUnitTests(): boolean; /** * Get the path to the cached services.php file. * * @return string */ getCachedServicesPath(): any; /** * Normalize a relative or absolute path to a cache file. * * @param string $key * @param string $default * @return string */ protected normalizeCachePath(key: any, defaultValue: any): any; bootstrapPath(p?: string): string; /** * Get the current application locale. * * @return string */ setLocale(locale: any): void; /** * Set the current application locale. * * @param string $locale * @return void */ getLocale(): string; /** * Determine if application locale is the given locale. * * @param string $locale * @return bool */ isLocale(locale: any): boolean; }