PHP Класс Laravel\Lumen\Application

Наследование: extends Illuminate\Container\Container, use trait Laravel\Lumen\Concerns\RoutesRequests, use trait Laravel\Lumen\Concerns\RegistersExceptionHandlers
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$availableBindings array The available container bindings and their respective load methods.

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

Свойство Тип Описание
$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