Property | Type | Description | |
---|---|---|---|
$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. |
Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
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 | |
return | void |
protected bindPathsInContainer ( ) : void | ||
return | void |
protected bootProvider ( |
||
$provider | ||
return | mixed |
public environment ( ) : string | ||
return | string |
protected fireAppCallbacks ( array $callbacks ) : void | ||
$callbacks | array | |
return | void |
public getCachedCompilePath ( ) : string | ||
return | string |
public getCachedServicesPath ( ) : string | ||
return | string |
public getDeferredServices ( ) : array | ||
return | array |
public getLoadedProviders ( ) : array | ||
return | array |
public getProvider ( |
||
$provider | ||
return |
public inDebugMode ( ) : boolean | ||
return | boolean |
public isDeferredService ( string $service ) : boolean | ||
$service | string | |
return | boolean |
public isDownForMaintenance ( ) : boolean | ||
return | boolean |
public isInstalled ( ) : boolean | ||
return | boolean |
public loadDeferredProvider ( string $service ) | ||
$service | string |
public loadDeferredProviders ( ) |
protected markAsRegistered ( |
||
$provider | ||
return | void |
public publicPath ( ) : string | ||
return | string |
protected registerBaseBindings ( ) |
protected registerBaseServiceProviders ( ) |
public registerConfiguredProviders ( ) : void | ||
return | void |
public registerCoreContainerAliases ( ) |
public registerDeferredProvider ( string $provider, string $service = null ) | ||
$provider | string | |
$service | string |
public resolveProviderClass ( string $provider ) : |
||
$provider | string | |
return |
public runningInConsole ( ) : boolean | ||
return | boolean |
public runningUnitTests ( ) : boolean | ||
return | boolean |
public setBasePath ( string $basePath ) | ||
$basePath | string |
public setDeferredServices ( array $services ) : void | ||
$services | array | |
return | void |
public setPublicPath ( string $publicPath ) | ||
$publicPath | string |
public storagePath ( ) : string | ||
return | string |
public useStoragePath ( string $path ) | ||
$path | string |
protected string $basePath | ||
return | string |
protected bool $booted | ||
return | boolean |
protected array $bootedCallbacks | ||
return | array |
protected array $bootingCallbacks | ||
return | array |
protected array $deferredServices | ||
return | array |
protected array $loadedProviders | ||
return | array |
protected string $publicPath | ||
return | string |
protected array $serviceProviders | ||
return | array |
protected string $storagePath | ||
return | string |