class ExtensionManager
Properties
protected | $config | |||
protected Paths | $paths | |||
protected | $container | |||
protected | $migrator | |||
protected Dispatcher | $dispatcher | |||
protected Filesystem | $filesystem | |||
protected Collection|null | $extensions |
Methods
No description
<p>Copy the assets from an extension's assets directory into public view.</p>
<p>Runs the database migrations to reset the database to its old state.</p>
<p>Call on all enabled extensions to extend the Flarum application.</p>
<p>Sort a list of extensions so that they are properly resolved in respect to order.</p>
Details
at
line 58
__construct(SettingsRepositoryInterface $config, Paths $paths, Container $container, Migrator $migrator, Dispatcher $dispatcher, Filesystem $filesystem)
at
line 77
Collection
getExtensions()
at
line 161
Collection
getExtensionsById(array $ids)
at
line 174
Extension|null
getExtension(string $name)
<p>Loads an Extension with all information.</p>
at
line 186
enable(string $name)
<p>Enables the extension.</p>
at
line 228
disable(string $name)
<p>Disables an extension.</p>
at
line 265
uninstall(string $name)
<p>Uninstalls an extension.</p>
at
line 285
protected
publishAssets(Extension $extension)
<p>Copy the assets from an extension's assets directory into public view.</p>
at
line 295
protected
unpublishAssets(Extension $extension)
<p>Delete an extension's assets from public view.</p>
at
line 307
string
getAsset(Extension $extension, string $path)
<p>Get the path to an extension's published asset.</p>
at
line 317
protected Cloud
getAssetsFilesystem()
<p>Get an instance of the assets filesystem.</p>
<p>This is resolved dynamically because Flarum's filesystem configuration might not be booted yet when the ExtensionManager singleton initializes.</p>
at
line 331
int
migrate(Extension $extension, string $direction = 'up')
<p>Runs the database migrations for the extension.</p>
at
line 348
void
migrateDown(Extension $extension)
<p>Runs the database migrations to reset the database to its old state.</p>
at
line 387
extend(Container $container)
<p>Call on all enabled extensions to extend the Flarum application.</p>
at
line 399
array
getEnabled()
<p>The id's of the enabled extensions.</p>
at
line 410
protected
setEnabledExtensions(array $enabledExtensions)
<p>Persist the currently enabled extensions.</p>
at
line 435
bool
isEnabled($extension)
<p>Whether the extension is enabled.</p>
at
line 448
static string[]
pluckTitles(array $exts)
<p>Returns the titles of the extensions passed.</p>