PHP 클래스 Illuminate\Support\ServiceProvider

파일 보기 프로젝트 열기: illuminate/support 1 사용 예제들

보호된 프로퍼티들

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