class Extension implements Arrayable
Constants
LOGO_MIMETYPES |
|
Properties
Methods
Get the list of flarum extensions that this extension depends on.
The IDs of all Flarum extensions that this extension should be booted after if enabled.
Details
at
line 55
static protected
nameToId($name)
at
line 120
__construct($path, array $composerJson)
at
line 130
protected
assignId()
Assigns the id for the extension used globally.
at
line 135
extend(Container $app)
at
line 152
__get($name)
{@inheritdoc}
at
line 160
__isset($name)
{@inheritdoc}
at
line 173
mixed
composerJsonAttribute($name)
Dot notation getter for composer.json attributes.
at
line 182
Extension
setInstalled(bool $installed)
at
line 192
bool
isInstalled()
at
line 201
Extension
setVersion(string $version)
at
line 217
calculateDependencies($extensionSet, $enabledIds)
Get the list of flarum extensions that this extension depends on.
at
line 242
string
getVersion()
at
line 252
array|null
getIcon()
Loads the icon information from the composer.json.
at
line 278
enable(Container $container)
at
line 285
disable(Container $container)
at
line 297
string
getId()
The raw path of the directory under extensions.
at
line 305
string
getTitle()
at
line 313
string
getPath()
at
line 323
array
getExtensionDependencyIds()
The IDs of all Flarum extensions that this extension depends on.
at
line 334
array
getOptionalDependencyIds()
The IDs of all Flarum extensions that this extension should be booted after if enabled.
at
line 383
getLinks()
Compile a list of links for this extension.
at
line 428
bool
hasAssets()
Tests whether the extension has assets.
at
line 433
copyAssetsTo(FilesystemInterface $target)
at
line 457
bool
hasMigrations()
Tests whether the extension has migrations.
at
line 480
array
toArray()
Generates an array result for the object.