프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$app | |||
$config | |||
$dispatcher | Illuminate\Contracts\Events\Dispatcher | ||
$extensions | |||
$filesystem | Illuminate\Filesystem\Filesystem | ||
$migrator |
메소드 | 설명 | |
---|---|---|
__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. |
메소드 | 설명 | |
---|---|---|
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 getEnabledBootstrappers ( ) : |
||
리턴 |
public getEnabledExtensions ( ) : |
||
리턴 |
public getExtension ( string $name ) : |
||
$name | string | |
리턴 |
public getMigrator ( ) : Flarum\Database\Migrator | ||
리턴 | Flarum\Database\Migrator |
public migrateDown ( |
||
$extension |
protected publishAssets ( |
||
$extension |
protected setEnabled ( array $enabled ) | ||
$enabled | array |
protected unpublishAssets ( |
||
$extension |
protected Dispatcher,Illuminate\Contracts\Events $dispatcher | ||
리턴 | Illuminate\Contracts\Events\Dispatcher |
protected Collection,Illuminate\Support|null $extensions | ||
리턴 |
protected Filesystem,Illuminate\Filesystem $filesystem | ||
리턴 | Illuminate\Filesystem\Filesystem |