PHP 클래스 Laravel\Lumen\Application

상속: extends Illuminate\Container\Container, use trait Laravel\Lumen\Concerns\RoutesRequests, use trait Laravel\Lumen\Concerns\RegistersExceptionHandlers
파일 보기 프로젝트 열기: laravel/lumen-framework 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$availableBindings array The available container bindings and their respective load methods.

보호된 프로퍼티들

프로퍼티 타입 설명
$aliasesRegistered boolean Indicates if the class aliases have been registered.
$basePath string The base path of the application installation.
$loadedConfigurations array All of the loaded configuration files.
$loadedProviders array The loaded service providers.
$monologConfigurator callable | null A custom callback used to configure Monolog.
$namespace string The application namespace.
$ranServiceBinders array The service binding methods that have been executed.

공개 메소드들

메소드 설명
__construct ( string | null $basePath = null ) : void Create a new Lumen application instance.
basePath ( string | null $path = null ) : string Get the base path for the application.
configure ( string $name ) : void Load a configuration file into the application.
configureMonologUsing ( callable $callback ) Define a callback to be used to configure Monolog.
databasePath ( ) : string Get the database path for the application.
environment ( ) : string Get or check the current application environment.
getConfigurationPath ( string | null $name = null ) : string Get the path to the given configuration file.
getNamespace ( ) : string Get the application namespace.
isDownForMaintenance ( ) : boolean Determine if the application is currently down for maintenance.
loadComponent ( string $config, array | string $providers, string | null $return = null ) : mixed Configure and load the given component and provider.
make ( string $abstract, array $parameters = [] ) : mixed Resolve the given type from the container.
path ( ) : string Get the path to the application "app" directory.
prepareForConsoleCommand ( boolean $aliases = true ) : void Prepare the application to execute a console command.
register ( ServiceProvider | string $provider, array $options = [], boolean $force = false ) : ServiceProvider Register a service provider with the application.
registerDeferredProvider ( string $provider, string | null $service = null ) : void Register a deferred provider and service.
runningInConsole ( ) : boolean Determine if the application is running in the console.
runningUnitTests ( ) : boolean Determine if we are running unit tests.
storagePath ( string | null $path = null ) : string Get the storage path for the application.
version ( ) : string Get the version number of the application.
withAliases ( array $userAliases = [] ) : void Register the aliases for the application.
withEloquent ( ) : void Load the Eloquent library for the application.
withFacades ( boolean $aliases = true, array $userAliases = [] ) : void Register the facades for the application.

보호된 메소드들

메소드 설명
bootstrapContainer ( ) : void Bootstrap the application container.
getLanguagePath ( ) : string Get the path to the application's language files.
getMonologHandler ( ) : AbstractHandler Get the Monolog handler for the application.
prepareRequest ( Illuminate\Http\Request $request ) : Illuminate\Http\Request Prepare the given request instance for use with the application.
registerAuthBindings ( ) : void Register container bindings for the application.
registerBroadcastingBindings ( ) : void Register container bindings for the application.
registerBusBindings ( ) : void Register container bindings for the application.
registerCacheBindings ( ) : void Register container bindings for the application.
registerComposerBindings ( ) : void Register container bindings for the application.
registerConfigBindings ( ) : void Register container bindings for the application.
registerContainerAliases ( ) : void Register the core container aliases.
registerDatabaseBindings ( ) : void Register container bindings for the application.
registerEncrypterBindings ( ) : void Register container bindings for the application.
registerEventBindings ( ) : void Register container bindings for the application.
registerFilesBindings ( ) : void Register container bindings for the application.
registerHashBindings ( ) : void Register container bindings for the application.
registerLogBindings ( ) : void Register container bindings for the application.
registerPsrRequestBindings ( ) : void Register container bindings for the PSR-7 request implementation.
registerPsrResponseBindings ( ) : void Register container bindings for the PSR-7 response implementation.
registerQueueBindings ( ) : void Register container bindings for the application.
registerRequestBindings ( ) : void Register container bindings for the application.
registerTranslationBindings ( ) : void Register container bindings for the application.
registerUrlGeneratorBindings ( ) : void Register container bindings for the application.
registerValidatorBindings ( ) : void Register container bindings for the application.
registerViewBindings ( ) : void Register container bindings for the application.

메소드 상세

__construct() 공개 메소드

Create a new Lumen application instance.
public __construct ( string | null $basePath = null ) : void
$basePath string | null
리턴 void

basePath() 공개 메소드

Get the base path for the application.
public basePath ( string | null $path = null ) : string
$path string | null
리턴 string

bootstrapContainer() 보호된 메소드

Bootstrap the application container.
protected bootstrapContainer ( ) : void
리턴 void

configure() 공개 메소드

Load a configuration file into the application.
public configure ( string $name ) : void
$name string
리턴 void

configureMonologUsing() 공개 메소드

Define a callback to be used to configure Monolog.
public configureMonologUsing ( callable $callback )
$callback callable

databasePath() 공개 메소드

Get the database path for the application.
public databasePath ( ) : string
리턴 string

environment() 공개 메소드

Get or check the current application environment.
public environment ( ) : string
리턴 string

getConfigurationPath() 공개 메소드

If no name is provided, then we'll return the path to the config folder.
public getConfigurationPath ( string | null $name = null ) : string
$name string | null
리턴 string

getLanguagePath() 보호된 메소드

Get the path to the application's language files.
protected getLanguagePath ( ) : string
리턴 string

getMonologHandler() 보호된 메소드

Get the Monolog handler for the application.
protected getMonologHandler ( ) : AbstractHandler
리턴 Monolog\Handler\AbstractHandler

getNamespace() 공개 메소드

Get the application namespace.
public getNamespace ( ) : string
리턴 string

isDownForMaintenance() 공개 메소드

Determine if the application is currently down for maintenance.
public isDownForMaintenance ( ) : boolean
리턴 boolean

loadComponent() 공개 메소드

Configure and load the given component and provider.
public loadComponent ( string $config, array | string $providers, string | null $return = null ) : mixed
$config string
$providers array | string
$return string | null
리턴 mixed

make() 공개 메소드

Resolve the given type from the container.
public make ( string $abstract, array $parameters = [] ) : mixed
$abstract string
$parameters array
리턴 mixed

path() 공개 메소드

Get the path to the application "app" directory.
public path ( ) : string
리턴 string

prepareForConsoleCommand() 공개 메소드

Prepare the application to execute a console command.
public prepareForConsoleCommand ( boolean $aliases = true ) : void
$aliases boolean
리턴 void

prepareRequest() 보호된 메소드

Prepare the given request instance for use with the application.
protected prepareRequest ( Illuminate\Http\Request $request ) : Illuminate\Http\Request
$request Illuminate\Http\Request
리턴 Illuminate\Http\Request

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

registerAuthBindings() 보호된 메소드

Register container bindings for the application.
protected registerAuthBindings ( ) : void
리턴 void

registerBroadcastingBindings() 보호된 메소드

Register container bindings for the application.
protected registerBroadcastingBindings ( ) : void
리턴 void

registerBusBindings() 보호된 메소드

Register container bindings for the application.
protected registerBusBindings ( ) : void
리턴 void

registerCacheBindings() 보호된 메소드

Register container bindings for the application.
protected registerCacheBindings ( ) : void
리턴 void

registerComposerBindings() 보호된 메소드

Register container bindings for the application.
protected registerComposerBindings ( ) : void
리턴 void

registerConfigBindings() 보호된 메소드

Register container bindings for the application.
protected registerConfigBindings ( ) : void
리턴 void

registerContainerAliases() 보호된 메소드

Register the core container aliases.
protected registerContainerAliases ( ) : void
리턴 void

registerDatabaseBindings() 보호된 메소드

Register container bindings for the application.
protected registerDatabaseBindings ( ) : void
리턴 void

registerDeferredProvider() 공개 메소드

Register a deferred provider and service.
public registerDeferredProvider ( string $provider, string | null $service = null ) : void
$provider string
$service string | null
리턴 void

registerEncrypterBindings() 보호된 메소드

Register container bindings for the application.
protected registerEncrypterBindings ( ) : void
리턴 void

registerEventBindings() 보호된 메소드

Register container bindings for the application.
protected registerEventBindings ( ) : void
리턴 void

registerFilesBindings() 보호된 메소드

Register container bindings for the application.
protected registerFilesBindings ( ) : void
리턴 void

registerHashBindings() 보호된 메소드

Register container bindings for the application.
protected registerHashBindings ( ) : void
리턴 void

registerLogBindings() 보호된 메소드

Register container bindings for the application.
protected registerLogBindings ( ) : void
리턴 void

registerPsrRequestBindings() 보호된 메소드

Register container bindings for the PSR-7 request implementation.
protected registerPsrRequestBindings ( ) : void
리턴 void

registerPsrResponseBindings() 보호된 메소드

Register container bindings for the PSR-7 response implementation.
protected registerPsrResponseBindings ( ) : void
리턴 void

registerQueueBindings() 보호된 메소드

Register container bindings for the application.
protected registerQueueBindings ( ) : void
리턴 void

registerRequestBindings() 보호된 메소드

Register container bindings for the application.
protected registerRequestBindings ( ) : void
리턴 void

registerTranslationBindings() 보호된 메소드

Register container bindings for the application.
protected registerTranslationBindings ( ) : void
리턴 void

registerUrlGeneratorBindings() 보호된 메소드

Register container bindings for the application.
protected registerUrlGeneratorBindings ( ) : void
리턴 void

registerValidatorBindings() 보호된 메소드

Register container bindings for the application.
protected registerValidatorBindings ( ) : void
리턴 void

registerViewBindings() 보호된 메소드

Register container bindings for the application.
protected registerViewBindings ( ) : void
리턴 void

runningInConsole() 공개 메소드

Determine if the application is running in the console.
public runningInConsole ( ) : boolean
리턴 boolean

runningUnitTests() 공개 메소드

Determine if we are running unit tests.
public runningUnitTests ( ) : boolean
리턴 boolean

storagePath() 공개 메소드

Get the storage path for the application.
public storagePath ( string | null $path = null ) : string
$path string | null
리턴 string

version() 공개 메소드

Get the version number of the application.
public version ( ) : string
리턴 string

withAliases() 공개 메소드

Register the aliases for the application.
public withAliases ( array $userAliases = [] ) : void
$userAliases array
리턴 void

withEloquent() 공개 메소드

Load the Eloquent library for the application.
public withEloquent ( ) : void
리턴 void

withFacades() 공개 메소드

Register the facades for the application.
public withFacades ( boolean $aliases = true, array $userAliases = [] ) : void
$aliases boolean
$userAliases array
리턴 void

프로퍼티 상세

$aliasesRegistered 보호되어 있는 정적으로 프로퍼티

Indicates if the class aliases have been registered.
protected static bool $aliasesRegistered
리턴 boolean

$availableBindings 공개적으로 프로퍼티

The available container bindings and their respective load methods.
public array $availableBindings
리턴 array

$basePath 보호되어 있는 프로퍼티

The base path of the application installation.
protected string $basePath
리턴 string

$loadedConfigurations 보호되어 있는 프로퍼티

All of the loaded configuration files.
protected array $loadedConfigurations
리턴 array

$loadedProviders 보호되어 있는 프로퍼티

The loaded service providers.
protected array $loadedProviders
리턴 array

$monologConfigurator 보호되어 있는 프로퍼티

A custom callback used to configure Monolog.
protected callable|null $monologConfigurator
리턴 callable | null

$namespace 보호되어 있는 프로퍼티

The application namespace.
protected string $namespace
리턴 string

$ranServiceBinders 보호되어 있는 프로퍼티

The service binding methods that have been executed.
protected array $ranServiceBinders
리턴 array