Property | Type | Description | |
---|---|---|---|
$app | |||
$config | |||
$dispatcher | Illuminate\Contracts\Events\Dispatcher | ||
$extensions | |||
$filesystem | Illuminate\Filesystem\Filesystem | ||
$migrator |
Method | Description | |
---|---|---|
__construct ( Flarum\Settings\SettingsRepositoryInterface $config, |
||
disable ( string $name ) | Disables an extension. | |
enable ( string $name ) | Enables the extension. | |
getAsset ( |
Get the path to an extension's published asset. | |
getEnabled ( ) : array | The id's of the enabled extensions. | |
getEnabledBootstrappers ( ) : |
Loads all bootstrap.php files of the enabled extensions. | |
getEnabledExtensions ( ) : |
Get only enabled extensions. | |
getExtension ( string $name ) : |
Loads an Extension with all information. | |
getExtensions ( ) : |
||
getMigrator ( ) : Flarum\Database\Migrator | The database migrator. | |
isEnabled ( $extension ) : boolean | Whether the extension is enabled. | |
migrate ( |
Runs the database migrations for the extension. | |
migrateDown ( |
Runs the database migrations to reset the database to its old state. | |
uninstall ( string $name ) | Uninstalls an extension. |
Method | Description | |
---|---|---|
getExtensionsDir ( ) : string | The extensions path. | |
publishAssets ( |
Copy the assets from an extension's assets directory into public view. | |
setEnabled ( array $enabled ) | Persist the currently enabled extensions. | |
unpublishAssets ( |
Delete an extension's assets from public view. |
public __construct ( Flarum\Settings\SettingsRepositoryInterface $config, |
||
$config | Flarum\Settings\SettingsRepositoryInterface | |
$app | ||
$migrator | Flarum\Database\Migrator | |
$dispatcher | Illuminate\Contracts\Events\Dispatcher | |
$filesystem | Illuminate\Filesystem\Filesystem |
public getEnabled ( ) : array | ||
return | array |
public getEnabledBootstrappers ( ) : |
||
return |
public getEnabledExtensions ( ) : |
||
return |
public getExtension ( string $name ) : |
||
$name | string | |
return |
public getExtensions ( ) : |
||
return |
protected getExtensionsDir ( ) : string | ||
return | string |
public getMigrator ( ) : Flarum\Database\Migrator | ||
return | Flarum\Database\Migrator |
public migrateDown ( |
||
$extension |
protected publishAssets ( |
||
$extension |
protected setEnabled ( array $enabled ) | ||
$enabled | array |
protected unpublishAssets ( |
||
$extension |
protected Dispatcher,Illuminate\Contracts\Events $dispatcher | ||
return | Illuminate\Contracts\Events\Dispatcher |
protected Collection,Illuminate\Support|null $extensions | ||
return |
protected Filesystem,Illuminate\Filesystem $filesystem | ||
return | Illuminate\Filesystem\Filesystem |