trait InteractsWithLaravel

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

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

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