Свойство | Тип | Описание | |
---|---|---|---|
$basePath | string | The base path for the Flarum installation. | |
$booted | boolean | Indicates if the application has "booted". | |
$bootedCallbacks | array | The array of booted callbacks. | |
$bootingCallbacks | array | The array of booting callbacks. | |
$deferredServices | array | The deferred services and their providers. | |
$loadedProviders | array | The names of the loaded service providers. | |
$publicPath | string | The public path for the Flarum installation. | |
$serviceProviders | array | All of the registered service providers. | |
$storagePath | string | The custom storage path defined by the developer. |
Метод | Описание | |
---|---|---|
__construct ( string | null $basePath = null, string | null $publicPath = null ) | Create a new Flarum application instance. | |
addDeferredServices ( array $services ) : void | Add an array of services to the application's deferred services. | |
basePath ( ) : string | Get the base path of the Laravel installation. | |
boot ( ) : void | Boot the application's service providers. | |
booted ( mixed $callback ) : void | Register a new "booted" listener. | |
booting ( mixed $callback ) : void | Register a new boot listener. | |
bound ( string $abstract ) : boolean | Determine if the given abstract type has been bound. | |
config ( string $key, mixed $default = null ) : mixed | ||
environment ( ) : string | Get or check the current application environment. | |
flush ( ) | Flush the container of all bindings and resolved instances. | |
getCachedCompilePath ( ) : string | Get the path to the cached "compiled.php" file. | |
getCachedServicesPath ( ) : string | Get the path to the cached services.json file. | |
getDeferredServices ( ) : array | Get the application's deferred services. | |
getLoadedProviders ( ) : array | Get the service providers that have been loaded. | |
getProvider ( |
Get the registered service provider instance if it exists. | |
inDebugMode ( ) : boolean | Check if Flarum is in debug mode. | |
isBooted ( ) : boolean | Determine if the application has booted. | |
isDeferredService ( string $service ) : boolean | Determine if the given service is a deferred service. | |
isDownForMaintenance ( ) : boolean | Determine if the application is currently down for maintenance. | |
isInstalled ( ) : boolean | Determine if Flarum has been installed. | |
isUpToDate ( ) | ||
loadDeferredProvider ( string $service ) | Load the provider for a deferred service. | |
loadDeferredProviders ( ) | Load and boot all of the remaining deferred providers. | |
make ( string $abstract, array $parameters = [] ) : mixed | Resolve the given type from the container. | |
publicPath ( ) : string | Get the path to the public / web directory. | |
register ( |
Register a service provider with the application. | |
registerConfiguredProviders ( ) : void | Register all of the configured providers. | |
registerCoreContainerAliases ( ) | Register the core class aliases in the container. | |
registerDeferredProvider ( string $provider, string $service = null ) | Register a deferred provider and service. | |
resolveProviderClass ( string $provider ) : |
Resolve a service provider instance from the class name. | |
runningInConsole ( ) : boolean | Determine if we are running in the console. | |
runningUnitTests ( ) : boolean | Determine if we are running unit tests. | |
setBasePath ( string $basePath ) | Set the base path for the application. | |
setDeferredServices ( array $services ) : void | Set the application's deferred services. | |
setPublicPath ( string $publicPath ) | Set the public path for the application. | |
storagePath ( ) : string | Get the path to the storage directory. | |
url ( string $path = null ) : string | Get the URL to the Flarum installation. | |
useStoragePath ( string $path ) | Set the storage directory. | |
version ( ) : string | Get the version number of the application. |
Метод | Описание | |
---|---|---|
bindPathsInContainer ( ) : void | Bind all of the application paths in the container. | |
bootProvider ( |
Boot the given service provider. | |
fireAppCallbacks ( array $callbacks ) : void | Call the booting callbacks for the application. | |
markAsRegistered ( |
Mark the given provider as registered. | |
registerBaseBindings ( ) | Register the basic bindings into the container. | |
registerBaseServiceProviders ( ) | Register all of the base service providers. |
public addDeferredServices ( array $services ) : void | ||
$services | array | |
Результат | void |
protected bindPathsInContainer ( ) : void | ||
Результат | void |
protected bootProvider ( |
||
$provider | ||
Результат | mixed |
public environment ( ) : string | ||
Результат | string |
protected fireAppCallbacks ( array $callbacks ) : void | ||
$callbacks | array | |
Результат | void |
public flush ( ) |
public getCachedCompilePath ( ) : string | ||
Результат | string |
public getCachedServicesPath ( ) : string | ||
Результат | string |
public getDeferredServices ( ) : array | ||
Результат | array |
public getLoadedProviders ( ) : array | ||
Результат | array |
public getProvider ( |
||
$provider | ||
Результат |
public inDebugMode ( ) : boolean | ||
Результат | boolean |
public isDeferredService ( string $service ) : boolean | ||
$service | string | |
Результат | boolean |
public isDownForMaintenance ( ) : boolean | ||
Результат | boolean |
public isInstalled ( ) : boolean | ||
Результат | boolean |
public loadDeferredProvider ( string $service ) | ||
$service | string |
public loadDeferredProviders ( ) |
protected markAsRegistered ( |
||
$provider | ||
Результат | void |
public publicPath ( ) : string | ||
Результат | string |
protected registerBaseBindings ( ) |
protected registerBaseServiceProviders ( ) |
public registerConfiguredProviders ( ) : void | ||
Результат | void |
public registerCoreContainerAliases ( ) |
public registerDeferredProvider ( string $provider, string $service = null ) | ||
$provider | string | |
$service | string |
public resolveProviderClass ( string $provider ) : |
||
$provider | string | |
Результат |
public runningInConsole ( ) : boolean | ||
Результат | boolean |
public runningUnitTests ( ) : boolean | ||
Результат | boolean |
public setBasePath ( string $basePath ) | ||
$basePath | string |
public setDeferredServices ( array $services ) : void | ||
$services | array | |
Результат | void |
public setPublicPath ( string $publicPath ) | ||
$publicPath | string |
public storagePath ( ) : string | ||
Результат | string |
public useStoragePath ( string $path ) | ||
$path | string |
protected string $basePath | ||
Результат | string |
protected bool $booted | ||
Результат | boolean |
protected array $bootedCallbacks | ||
Результат | array |
protected array $bootingCallbacks | ||
Результат | array |
protected array $deferredServices | ||
Результат | array |
protected array $loadedProviders | ||
Результат | array |
protected string $publicPath | ||
Результат | string |
protected array $serviceProviders | ||
Результат | array |
protected string $storagePath | ||
Результат | string |