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 81
__construct(Container $container, Paths $paths)
Create a new Flarum application instance.
at
line 96
mixed
config(string $key, mixed $default = null)
at
line 108
bool
inDebugMode()
Check if Flarum is in debug mode.
at
line 119
string
url(string $path = null)
Get the URL to the Flarum installation.
at
line 134
protected
registerBaseBindings()
Register the basic bindings into the container.
at
line 158
protected
registerBaseServiceProviders()
Register all of the base service providers.
at
line 171
ServiceProvider
register(ServiceProvider|string $provider, array $options = [], bool $force = false)
Register a service provider with the application.
at
line 211
ServiceProvider|null
getProvider(ServiceProvider|string $provider)
Get the registered service provider instance if it exists.
at
line 226
ServiceProvider
resolveProviderClass(string $provider)
Resolve a service provider instance from the class name.
at
line 237
protected void
markAsRegistered(ServiceProvider $provider)
Mark the given provider as registered.
at
line 251
bool
isBooted()
Determine if the application has booted.
at
line 261
void
boot()
Boot the application's service providers.
at
line 287
protected mixed
bootProvider(ServiceProvider $provider)
Boot the given service provider.
at
line 300
void
booting(mixed $callback)
Register a new boot listener.
at
line 311
void
booted(mixed $callback)
Register a new "booted" listener.
at
line 326
protected void
fireAppCallbacks(array $callbacks)
Call the booting callbacks for the application.
at
line 336
registerCoreContainerAliases()
Register the core class aliases in the container.