PHP Class App\services\PluginManager

Afficher le fichier Open project: printempw/blessing-skin-server Class Usage Examples

Protected Properties

Свойство Type Description
$app Illuminate\Contracts\Foundation\Application
$dispatcher Illuminate\Contracts\Events\Dispatcher
$filesystem Illuminate\Filesystem\Filesystem
$option App\Services\Repositories\OptionRepository
$plugins Illuminate\Support\Collection | null

Méthodes publiques

Méthode Description
__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.

Méthodes protégées

Méthode Description
getPluginsDir ( ) : string The plugins path.
setEnabled ( array $enabled ) Persist the currently enabled plugins.

Method Details

__construct() public méthode

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() public méthode

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

enable() public méthode

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

getEnabled() public méthode

The id's of the enabled plugins.
public getEnabled ( ) : array
Résultat array

getEnabledBootstrappers() public méthode

Loads all bootstrap.php files of the enabled plugins.
public getEnabledBootstrappers ( ) : Collection
Résultat Illuminate\Support\Collection

getEnabledPlugins() public méthode

Get only enabled plugins.
public getEnabledPlugins ( ) : Collection
Résultat Illuminate\Support\Collection

getPlugin() public méthode

Loads an Plugin with all information.
public getPlugin ( string $name ) : Plugin | null
$name string
Résultat Plugin | null

getPlugins() public méthode

public getPlugins ( ) : Collection
Résultat Illuminate\Support\Collection

getPluginsDir() protected méthode

The plugins path.
protected getPluginsDir ( ) : string
Résultat string

isEnabled() public méthode

Whether the plugin is enabled.
public isEnabled ( $plugin ) : boolean
$plugin
Résultat boolean

setEnabled() protected méthode

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

uninstall() public méthode

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

Property Details

$app protected_oe property

protected Application,Illuminate\Contracts\Foundation $app
Résultat Illuminate\Contracts\Foundation\Application

$dispatcher protected_oe property

protected Dispatcher,Illuminate\Contracts\Events $dispatcher
Résultat Illuminate\Contracts\Events\Dispatcher

$filesystem protected_oe property

protected Filesystem,Illuminate\Filesystem $filesystem
Résultat Illuminate\Filesystem\Filesystem

$option protected_oe property

protected OptionRepository,App\Services\Repositories $option
Résultat App\Services\Repositories\OptionRepository

$plugins protected_oe property

protected Collection,Illuminate\Support|null $plugins
Résultat Illuminate\Support\Collection | null