class Application
Constants
| VERSION |
The Flarum version. |
Properties
| protected Paths | $paths | The paths for the Flarum installation. |
|
|
| protected bool | $booted | Indicates if the application has "booted". |
|
|
| protected array | $bootingCallbacks | The array of booting callbacks. |
|
|
| protected array | $bootedCallbacks | The array of booted callbacks. |
|
|
| protected array | $serviceProviders | All of the registered service providers. |
|
|
| protected array | $loadedProviders | The names of the loaded service providers. |
|
Methods
Register a service provider with the application.
Get the registered service provider instance if it exists.
Resolve a service provider instance from the class name.
Details
at
line 83
__construct(Container $container, Paths $paths)
Create a new Flarum application instance.
at
line 98
mixed
config(string $key, mixed $default = null)
at
line 110
bool
inDebugMode()
Check if Flarum is in debug mode.
at
line 121
string
url(string $path = null)
Get the URL to the Flarum installation.
at
line 136
protected
registerBaseBindings()
Register the basic bindings into the container.
at
line 160
protected
registerBaseServiceProviders()
Register all of the base service providers.
at
line 173
ServiceProvider
register(ServiceProvider|string $provider, array $options = [], bool $force = false)
Register a service provider with the application.
at
line 213
ServiceProvider|null
getProvider(ServiceProvider|string $provider)
Get the registered service provider instance if it exists.
at
line 228
ServiceProvider
resolveProviderClass(string $provider)
Resolve a service provider instance from the class name.
at
line 239
protected void
markAsRegistered(ServiceProvider $provider)
Mark the given provider as registered.
at
line 253
bool
isBooted()
Determine if the application has booted.
at
line 263
void
boot()
Boot the application's service providers.
at
line 294
protected mixed
bootProvider(ServiceProvider $provider)
Boot the given service provider.
at
line 307
void
booting(mixed $callback)
Register a new boot listener.
at
line 318
void
booted(mixed $callback)
Register a new "booted" listener.
at
line 333
protected void
fireAppCallbacks(array $callbacks)
Call the booting callbacks for the application.
at
line 343
registerCoreContainerAliases()
Register the core class aliases in the container.