class Application extends Container implements Application

Traits

Implementation of the Laravel Application Contract, for the sake of better integration with Laravel packages/ecosystem.

Constants

VERSION

<p>The Flarum version.</p>

Properties

protected $booted
protected $bootingCallbacks
protected $bootedCallbacks
protected $serviceProviders
protected $loadedProviders

Methods

terminating($callback) deprecated

No description

void
terminate() deprecated

No description

string
basePath($path = '')

No description

string
publicPath($path = '')

No description

string
storagePath($path = '')

No description

string
bootstrapPath($path = '') deprecated

No description

string
configPath($path = '') deprecated

No description

string
databasePath($path = '') deprecated

No description

string
langPath($path = '') deprecated

No description

string
resourcePath($path = '') deprecated

No description

bool|string
environment(...$environments)

No description

bool
runningInConsole()

No description

bool
runningUnitTests()

No description

bool
hasDebugModeEnabled()

No description

maintenanceMode() deprecated

No description

bool
isDownForMaintenance() deprecated

No description

void
registerConfiguredProviders() deprecated

No description

void
registerDeferredProvider($provider, $service = null) deprecated

No description

void
bootstrapWith(array $bootstrappers) deprecated

No description

string
getLocale()

No description

string
getNamespace()

No description

array
getProviders($provider)

No description

bool
hasBeenBootstrapped() deprecated

No description

void
loadDeferredProviders() deprecated

No description

void
setLocale($locale)

No description

bool
shouldSkipMiddleware() deprecated

No description

string
joinPaths(string $basePath, string $path = '')

No description

__construct(Paths $paths)

No description

mixed
config(string $key, mixed $default = null)

No description

string
url(string $path = null)

No description

void
registerBaseBindings()

No description

void
registerBaseServiceProviders()

No description

ServiceProvider
register($provider, $force = false)

No description

ServiceProvider|null
getProvider(ServiceProvider $provider)

No description

ServiceProvider
resolveProvider(ServiceProvider> $provider)

<p>Resolve a service provider instance from the class name.</p>

void
markAsRegistered(ServiceProvider $provider)

No description

bool
isBooted()

No description

void
boot()

No description

mixed
bootProvider(ServiceProvider $provider)

No description

void
booting(mixed $callback)

No description

void
booted(mixed $callback)

No description

void
fireAppCallbacks(array $callbacks)

No description

void
registerCoreContainerAliases()

No description

string
version()

No description

Details

InteractsWithLaravel terminating($callback) deprecated

deprecated Not actually used/has no meaning in Flarum.

Parameters

$callback

Return Value

InteractsWithLaravel

void terminate() deprecated

deprecated Not actually used/has no meaning in Flarum.

Return Value

void

string basePath($path = '')

Parameters

$path

Return Value

string

string publicPath($path = '')

Parameters

$path

Return Value

string

string storagePath($path = '')

Parameters

$path

Return Value

string

string bootstrapPath($path = '') deprecated

deprecated Not actually used/has no meaning in Flarum.

Parameters

$path

Return Value

string

string configPath($path = '') deprecated

deprecated Not actually used/has no meaning in Flarum.

Parameters

$path

Return Value

string

string databasePath($path = '') deprecated

deprecated Not actually used/has no meaning in Flarum.

Parameters

$path

Return Value

string

string langPath($path = '') deprecated

deprecated Not actually used/has no meaning in Flarum.

Parameters

$path

Return Value

string

string resourcePath($path = '') deprecated

deprecated Not actually used/has no meaning in Flarum.

Parameters

$path

Return Value

string

bool|string environment(...$environments)

Parameters

...$environments

Return Value

bool|string

bool runningInConsole()

Return Value

bool

bool runningUnitTests()

Return Value

bool

bool hasDebugModeEnabled()

Return Value

bool

maintenanceMode() deprecated

deprecated Not actually used/has no meaning in Flarum.

bool isDownForMaintenance() deprecated

deprecated Not actually used/has no meaning in Flarum.

Return Value

bool

void registerConfiguredProviders() deprecated

deprecated Not actually used/has no meaning in Flarum.

Return Value

void

void registerDeferredProvider($provider, $service = null) deprecated

deprecated Not actually used/has no meaning in Flarum.

Parameters

$provider
$service

Return Value

void

void bootstrapWith(array $bootstrappers) deprecated

deprecated Not actually used/has no meaning in Flarum.

Parameters

array $bootstrappers

Return Value

void

string getLocale()

Return Value

string

string getNamespace()

Return Value

string

array getProviders($provider)

Parameters

$provider

Return Value

array

bool hasBeenBootstrapped() deprecated

deprecated Not actually used/has no meaning in Flarum.

Return Value

bool

void loadDeferredProviders() deprecated

deprecated Not actually used/has no meaning in Flarum.

Return Value

void

void setLocale($locale)

Parameters

$locale

Return Value

void

bool shouldSkipMiddleware() deprecated

deprecated Not actually used/has no meaning in Flarum.

Return Value

bool

string joinPaths(string $basePath, string $path = '')

Parameters

string $basePath
string $path

Return Value

string

__construct(Paths $paths)

Parameters

Paths $paths

mixed config(string $key, mixed $default = null)

Parameters

string $key
mixed $default

Return Value

mixed

string url(string $path = null)

Parameters

string $path

Return Value

string

protected void registerBaseBindings()

Return Value

void

protected void registerBaseServiceProviders()

Return Value

void

ServiceProvider register($provider, $force = false)

Parameters

$provider
$force

Return Value

ServiceProvider

ServiceProvider|null getProvider(ServiceProvider $provider)

Parameters

ServiceProvider $provider

Return Value

ServiceProvider|null

ServiceProvider resolveProvider(ServiceProvider> $provider)

<p>Resolve a service provider instance from the class name.</p>

Parameters

ServiceProvider> $provider

Return Value

ServiceProvider

protected void markAsRegistered(ServiceProvider $provider)

Parameters

ServiceProvider $provider

Return Value

void

bool isBooted()

Return Value

bool

void boot()

Return Value

void

protected mixed bootProvider(ServiceProvider $provider)

Parameters

ServiceProvider $provider

Return Value

mixed

void booting(mixed $callback)

Parameters

mixed $callback

Return Value

void

void booted(mixed $callback)

Parameters

mixed $callback

Return Value

void

protected void fireAppCallbacks(array $callbacks)

Parameters

array $callbacks

Return Value

void

void registerCoreContainerAliases()

Return Value

void

string version()

Return Value

string