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