PHP 클래스 App\services\PluginManager

파일 보기 프로젝트 열기: printempw/blessing-skin-server 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$app Illuminate\Contracts\Foundation\Application
$dispatcher Illuminate\Contracts\Events\Dispatcher
$filesystem Illuminate\Filesystem\Filesystem
$option App\Services\Repositories\OptionRepository
$plugins Illuminate\Support\Collection | null

공개 메소드들

메소드 설명
__construct ( Illuminate\Contracts\Foundation\Application $app, OptionRepository $option, Illuminate\Contracts\Events\Dispatcher $dispatcher, Illuminate\Filesystem\Filesystem $filesystem )
disable ( string $name ) Disables an plugin.
enable ( string $name ) Enables the plugin.
getEnabled ( ) : array The id's of the enabled plugins.
getEnabledBootstrappers ( ) : Collection Loads all bootstrap.php files of the enabled plugins.
getEnabledPlugins ( ) : Collection Get only enabled plugins.
getPlugin ( string $name ) : Plugin | null Loads an Plugin with all information.
getPlugins ( ) : Collection
isEnabled ( $plugin ) : boolean Whether the plugin is enabled.
uninstall ( string $name ) Uninstalls an plugin.

보호된 메소드들

메소드 설명
getPluginsDir ( ) : string The plugins path.
setEnabled ( array $enabled ) Persist the currently enabled plugins.

메소드 상세

__construct() 공개 메소드

public __construct ( Illuminate\Contracts\Foundation\Application $app, OptionRepository $option, Illuminate\Contracts\Events\Dispatcher $dispatcher, Illuminate\Filesystem\Filesystem $filesystem )
$app Illuminate\Contracts\Foundation\Application
$option App\Services\Repositories\OptionRepository
$dispatcher Illuminate\Contracts\Events\Dispatcher
$filesystem Illuminate\Filesystem\Filesystem

disable() 공개 메소드

Disables an plugin.
public disable ( string $name )
$name string

enable() 공개 메소드

Enables the plugin.
public enable ( string $name )
$name string

getEnabled() 공개 메소드

The id's of the enabled plugins.
public getEnabled ( ) : array
리턴 array

getEnabledBootstrappers() 공개 메소드

Loads all bootstrap.php files of the enabled plugins.
public getEnabledBootstrappers ( ) : Collection
리턴 Illuminate\Support\Collection

getEnabledPlugins() 공개 메소드

Get only enabled plugins.
public getEnabledPlugins ( ) : Collection
리턴 Illuminate\Support\Collection

getPlugin() 공개 메소드

Loads an Plugin with all information.
public getPlugin ( string $name ) : Plugin | null
$name string
리턴 Plugin | null

getPlugins() 공개 메소드

public getPlugins ( ) : Collection
리턴 Illuminate\Support\Collection

getPluginsDir() 보호된 메소드

The plugins path.
protected getPluginsDir ( ) : string
리턴 string

isEnabled() 공개 메소드

Whether the plugin is enabled.
public isEnabled ( $plugin ) : boolean
$plugin
리턴 boolean

setEnabled() 보호된 메소드

Persist the currently enabled plugins.
protected setEnabled ( array $enabled )
$enabled array

uninstall() 공개 메소드

Uninstalls an plugin.
public uninstall ( string $name )
$name string

프로퍼티 상세

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

protected Application,Illuminate\Contracts\Foundation $app
리턴 Illuminate\Contracts\Foundation\Application

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

protected Dispatcher,Illuminate\Contracts\Events $dispatcher
리턴 Illuminate\Contracts\Events\Dispatcher

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

protected Filesystem,Illuminate\Filesystem $filesystem
리턴 Illuminate\Filesystem\Filesystem

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

protected OptionRepository,App\Services\Repositories $option
리턴 App\Services\Repositories\OptionRepository

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

protected Collection,Illuminate\Support|null $plugins
리턴 Illuminate\Support\Collection | null