PHP Класс Flarum\Foundation\Application

Наследование: extends Illuminate\Container\Container, implements Illuminate\Contracts\Foundation\Application
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$basePath string The base path for the Flarum installation.
$booted boolean Indicates if the application has "booted".
$bootedCallbacks array The array of booted callbacks.
$bootingCallbacks array The array of booting callbacks.
$deferredServices array The deferred services and their providers.
$loadedProviders array The names of the loaded service providers.
$publicPath string The public path for the Flarum installation.
$serviceProviders array All of the registered service providers.
$storagePath string The custom storage path defined by the developer.

Открытые методы

Метод Описание
__construct ( string | null $basePath = null, string | null $publicPath = null ) Create a new Flarum application instance.
addDeferredServices ( array $services ) : void Add an array of services to the application's deferred services.
basePath ( ) : string Get the base path of the Laravel installation.
boot ( ) : void Boot the application's service providers.
booted ( mixed $callback ) : void Register a new "booted" listener.
booting ( mixed $callback ) : void Register a new boot listener.
bound ( string $abstract ) : boolean Determine if the given abstract type has been bound.
config ( string $key, mixed $default = null ) : mixed
environment ( ) : string Get or check the current application environment.
flush ( ) Flush the container of all bindings and resolved instances.
getCachedCompilePath ( ) : string Get the path to the cached "compiled.php" file.
getCachedServicesPath ( ) : string Get the path to the cached services.json file.
getDeferredServices ( ) : array Get the application's deferred services.
getLoadedProviders ( ) : array Get the service providers that have been loaded.
getProvider ( ServiceProvider | string $provider ) : ServiceProvider | null Get the registered service provider instance if it exists.
inDebugMode ( ) : boolean Check if Flarum is in debug mode.
isBooted ( ) : boolean Determine if the application has booted.
isDeferredService ( string $service ) : boolean Determine if the given service is a deferred service.
isDownForMaintenance ( ) : boolean Determine if the application is currently down for maintenance.
isInstalled ( ) : boolean Determine if Flarum has been installed.
isUpToDate ( )
loadDeferredProvider ( string $service ) Load the provider for a deferred service.
loadDeferredProviders ( ) Load and boot all of the remaining deferred providers.
make ( string $abstract, array $parameters = [] ) : mixed Resolve the given type from the container.
publicPath ( ) : string Get the path to the public / web directory.
register ( ServiceProvider | string $provider, array $options = [], boolean $force = false ) : ServiceProvider Register a service provider with the application.
registerConfiguredProviders ( ) : void Register all of the configured providers.
registerCoreContainerAliases ( ) Register the core class aliases in the container.
registerDeferredProvider ( string $provider, string $service = null ) Register a deferred provider and service.
resolveProviderClass ( string $provider ) : ServiceProvider Resolve a service provider instance from the class name.
runningInConsole ( ) : boolean Determine if we are running in the console.
runningUnitTests ( ) : boolean Determine if we are running unit tests.
setBasePath ( string $basePath ) Set the base path for the application.
setDeferredServices ( array $services ) : void Set the application's deferred services.
setPublicPath ( string $publicPath ) Set the public path for the application.
storagePath ( ) : string Get the path to the storage directory.
url ( string $path = null ) : string Get the URL to the Flarum installation.
useStoragePath ( string $path ) Set the storage directory.
version ( ) : string Get the version number of the application.

Защищенные методы

Метод Описание
bindPathsInContainer ( ) : void Bind all of the application paths in the container.
bootProvider ( ServiceProvider $provider ) : mixed Boot the given service provider.
fireAppCallbacks ( array $callbacks ) : void Call the booting callbacks for the application.
markAsRegistered ( ServiceProvider $provider ) : void Mark the given provider as registered.
registerBaseBindings ( ) Register the basic bindings into the container.
registerBaseServiceProviders ( ) Register all of the base service providers.

Описание методов

__construct() публичный метод

Create a new Flarum application instance.
public __construct ( string | null $basePath = null, string | null $publicPath = null )
$basePath string | null
$publicPath string | null

addDeferredServices() публичный метод

Add an array of services to the application's deferred services.
public addDeferredServices ( array $services ) : void
$services array
Результат void

basePath() публичный метод

Get the base path of the Laravel installation.
public basePath ( ) : string
Результат string

bindPathsInContainer() защищенный метод

Bind all of the application paths in the container.
protected bindPathsInContainer ( ) : void
Результат void

boot() публичный метод

Boot the application's service providers.
public boot ( ) : void
Результат void

bootProvider() защищенный метод

Boot the given service provider.
protected bootProvider ( ServiceProvider $provider ) : mixed
$provider Illuminate\Support\ServiceProvider
Результат mixed

booted() публичный метод

Register a new "booted" listener.
public booted ( mixed $callback ) : void
$callback mixed
Результат void

booting() публичный метод

Register a new boot listener.
public booting ( mixed $callback ) : void
$callback mixed
Результат void

bound() публичный метод

(Overriding Container::bound)
public bound ( string $abstract ) : boolean
$abstract string
Результат boolean

config() публичный метод

public config ( string $key, mixed $default = null ) : mixed
$key string
$default mixed
Результат mixed

environment() публичный метод

Get or check the current application environment.
public environment ( ) : string
Результат string

fireAppCallbacks() защищенный метод

Call the booting callbacks for the application.
protected fireAppCallbacks ( array $callbacks ) : void
$callbacks array
Результат void

flush() публичный метод

Flush the container of all bindings and resolved instances.
public flush ( )

getCachedCompilePath() публичный метод

Get the path to the cached "compiled.php" file.
public getCachedCompilePath ( ) : string
Результат string

getCachedServicesPath() публичный метод

Get the path to the cached services.json file.
public getCachedServicesPath ( ) : string
Результат string

getDeferredServices() публичный метод

Get the application's deferred services.
public getDeferredServices ( ) : array
Результат array

getLoadedProviders() публичный метод

Get the service providers that have been loaded.
public getLoadedProviders ( ) : array
Результат array

getProvider() публичный метод

Get the registered service provider instance if it exists.
public getProvider ( ServiceProvider | string $provider ) : ServiceProvider | null
$provider Illuminate\Support\ServiceProvider | string
Результат Illuminate\Support\ServiceProvider | null

inDebugMode() публичный метод

Check if Flarum is in debug mode.
public inDebugMode ( ) : boolean
Результат boolean

isBooted() публичный метод

Determine if the application has booted.
public isBooted ( ) : boolean
Результат boolean

isDeferredService() публичный метод

Determine if the given service is a deferred service.
public isDeferredService ( string $service ) : boolean
$service string
Результат boolean

isDownForMaintenance() публичный метод

Determine if the application is currently down for maintenance.
public isDownForMaintenance ( ) : boolean
Результат boolean

isInstalled() публичный метод

Determine if Flarum has been installed.
public isInstalled ( ) : boolean
Результат boolean

isUpToDate() публичный метод

public isUpToDate ( )

loadDeferredProvider() публичный метод

Load the provider for a deferred service.
public loadDeferredProvider ( string $service )
$service string

loadDeferredProviders() публичный метод

Load and boot all of the remaining deferred providers.

make() публичный метод

(Overriding Container::make)
public make ( string $abstract, array $parameters = [] ) : mixed
$abstract string
$parameters array
Результат mixed

markAsRegistered() защищенный метод

Mark the given provider as registered.
protected markAsRegistered ( ServiceProvider $provider ) : void
$provider Illuminate\Support\ServiceProvider
Результат void

publicPath() публичный метод

Get the path to the public / web directory.
public publicPath ( ) : string
Результат string

register() публичный метод

Register a service provider with the application.
public register ( ServiceProvider | string $provider, array $options = [], boolean $force = false ) : ServiceProvider
$provider Illuminate\Support\ServiceProvider | string
$options array
$force boolean
Результат Illuminate\Support\ServiceProvider

registerBaseBindings() защищенный метод

Register the basic bindings into the container.
protected registerBaseBindings ( )

registerBaseServiceProviders() защищенный метод

Register all of the base service providers.

registerConfiguredProviders() публичный метод

Register all of the configured providers.
public registerConfiguredProviders ( ) : void
Результат void

registerCoreContainerAliases() публичный метод

Register the core class aliases in the container.

registerDeferredProvider() публичный метод

Register a deferred provider and service.
public registerDeferredProvider ( string $provider, string $service = null )
$provider string
$service string

resolveProviderClass() публичный метод

Resolve a service provider instance from the class name.
public resolveProviderClass ( string $provider ) : ServiceProvider
$provider string
Результат Illuminate\Support\ServiceProvider

runningInConsole() публичный метод

Determine if we are running in the console.
public runningInConsole ( ) : boolean
Результат boolean

runningUnitTests() публичный метод

Determine if we are running unit tests.
public runningUnitTests ( ) : boolean
Результат boolean

setBasePath() публичный метод

Set the base path for the application.
public setBasePath ( string $basePath )
$basePath string

setDeferredServices() публичный метод

Set the application's deferred services.
public setDeferredServices ( array $services ) : void
$services array
Результат void

setPublicPath() публичный метод

Set the public path for the application.
public setPublicPath ( string $publicPath )
$publicPath string

storagePath() публичный метод

Get the path to the storage directory.
public storagePath ( ) : string
Результат string

url() публичный метод

Get the URL to the Flarum installation.
public url ( string $path = null ) : string
$path string
Результат string

useStoragePath() публичный метод

Set the storage directory.
public useStoragePath ( string $path )
$path string

version() публичный метод

Get the version number of the application.
public version ( ) : string
Результат string

Описание свойств

$basePath защищенное свойство

The base path for the Flarum installation.
protected string $basePath
Результат string

$booted защищенное свойство

Indicates if the application has "booted".
protected bool $booted
Результат boolean

$bootedCallbacks защищенное свойство

The array of booted callbacks.
protected array $bootedCallbacks
Результат array

$bootingCallbacks защищенное свойство

The array of booting callbacks.
protected array $bootingCallbacks
Результат array

$deferredServices защищенное свойство

The deferred services and their providers.
protected array $deferredServices
Результат array

$loadedProviders защищенное свойство

The names of the loaded service providers.
protected array $loadedProviders
Результат array

$publicPath защищенное свойство

The public path for the Flarum installation.
protected string $publicPath
Результат string

$serviceProviders защищенное свойство

All of the registered service providers.
protected array $serviceProviders
Результат array

$storagePath защищенное свойство

The custom storage path defined by the developer.
protected string $storagePath
Результат string