class Application
Constants
VERSION |
The Flarum version. |
Properties
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 151
protected
registerBaseServiceProviders()
Register all of the base service providers.
at
line 164
ServiceProvider
register(ServiceProvider|string $provider, array $options = [], bool $force = false)
Register a service provider with the application.
at
line 204
ServiceProvider|null
getProvider(ServiceProvider|string $provider)
Get the registered service provider instance if it exists.
at
line 219
ServiceProvider
resolveProviderClass(string $provider)
Resolve a service provider instance from the class name.
at
line 230
protected void
markAsRegistered(ServiceProvider $provider)
Mark the given provider as registered.
at
line 244
bool
isBooted()
Determine if the application has booted.
at
line 254
void
boot()
Boot the application's service providers.
at
line 280
protected mixed
bootProvider(ServiceProvider $provider)
Boot the given service provider.
at
line 293
void
booting(mixed $callback)
Register a new boot listener.
at
line 304
void
booted(mixed $callback)
Register a new "booted" listener.
at
line 319
protected void
fireAppCallbacks(array $callbacks)
Call the booting callbacks for the application.
at
line 329
registerCoreContainerAliases()
Register the core class aliases in the container.