PHP 클래스 Flarum\Foundation\Application

상속: extends Illuminate\Container\Container, implements Illuminate\Contracts\Foundation\Application
파일 보기 프로젝트 열기: flarum/core 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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