PHP Класс Illuminate\Support\ServiceProvider

Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$app Illuminate\Contracts\Foundation\Application The application instance.
$defer boolean Indicates if loading of the provider is deferred.
$publishGroups array The paths that should be published by group.
$publishes array The paths that should be published.

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

Метод Описание
__construct ( Illuminate\Contracts\Foundation\Application $app ) : void Create a new service provider instance.
commands ( array | mixed $commands ) : void Register the package's custom Artisan commands.
compiles ( ) : array Get a list of files that should be compiled for the package.
isDeferred ( ) : boolean Determine if the provider is deferred.
pathsToPublish ( string $provider = null, string $group = null ) : array Get the paths to publish.
provides ( ) : array Get the services provided by the provider.
when ( ) : array Get the events that trigger this service provider to register.

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

Метод Описание
loadMigrationsFrom ( array | string $paths ) : void Register a database migration path.
loadRoutesFrom ( string $path ) : void Load the given routes file if routes are not already cached.
loadTranslationsFrom ( string $path, string $namespace ) : void Register a translation file namespace.
loadViewsFrom ( string $path, string $namespace ) : void Register a view file namespace.
mergeConfigFrom ( string $path, string $key ) : void Merge the given configuration with the existing configuration.
publishes ( array $paths, string $group = null ) : void Register paths to be published by the publish command.

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

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

Create a new service provider instance.
public __construct ( Illuminate\Contracts\Foundation\Application $app ) : void
$app Illuminate\Contracts\Foundation\Application
Результат void

commands() публичный Метод

Register the package's custom Artisan commands.
public commands ( array | mixed $commands ) : void
$commands array | mixed
Результат void

compiles() публичный статический Метод

Get a list of files that should be compiled for the package.
public static compiles ( ) : array
Результат array

isDeferred() публичный Метод

Determine if the provider is deferred.
public isDeferred ( ) : boolean
Результат boolean

loadMigrationsFrom() защищенный Метод

Register a database migration path.
protected loadMigrationsFrom ( array | string $paths ) : void
$paths array | string
Результат void

loadRoutesFrom() защищенный Метод

Load the given routes file if routes are not already cached.
protected loadRoutesFrom ( string $path ) : void
$path string
Результат void

loadTranslationsFrom() защищенный Метод

Register a translation file namespace.
protected loadTranslationsFrom ( string $path, string $namespace ) : void
$path string
$namespace string
Результат void

loadViewsFrom() защищенный Метод

Register a view file namespace.
protected loadViewsFrom ( string $path, string $namespace ) : void
$path string
$namespace string
Результат void

mergeConfigFrom() защищенный Метод

Merge the given configuration with the existing configuration.
protected mergeConfigFrom ( string $path, string $key ) : void
$path string
$key string
Результат void

pathsToPublish() публичный статический Метод

Get the paths to publish.
public static pathsToPublish ( string $provider = null, string $group = null ) : array
$provider string
$group string
Результат array

provides() публичный Метод

Get the services provided by the provider.
public provides ( ) : array
Результат array

publishes() защищенный Метод

Register paths to be published by the publish command.
protected publishes ( array $paths, string $group = null ) : void
$paths array
$group string
Результат void

when() публичный Метод

Get the events that trigger this service provider to register.
public when ( ) : array
Результат array

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

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

The application instance.
protected Application,Illuminate\Contracts\Foundation $app
Результат Illuminate\Contracts\Foundation\Application

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

Indicates if loading of the provider is deferred.
protected bool $defer
Результат boolean

$publishGroups защищенное статическое свойство

The paths that should be published by group.
protected static array $publishGroups
Результат array

$publishes защищенное статическое свойство

The paths that should be published.
protected static array $publishes
Результат array