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 111
__construct($path, array $composerJson)
at
line 118
static protected
nameToId($name)
at
line 129
protected
assignId()
Assigns the id for the extension used globally.
at
line 137
extend(Container $container)
at
line 151
__get($name)
{@inheritdoc}
at
line 159
__isset($name)
{@inheritdoc}
at
line 172
mixed
composerJsonAttribute($name)
Dot notation getter for composer.json attributes.
at
line 193
bool
isInstalled()
at
line 222
calculateDependencies($extensionSet)
Get the list of flarum extensions that this extension depends on.
at
line 244
string
getVersion()
at
line 254
array|null
getIcon()
Loads the icon information from the composer.json.
at
line 280
string
getIconStyles()
at
line 304
enable(Container $container)
at
line 314
disable(Container $container)
at
line 326
string
getId()
The raw path of the directory under extensions.
at
line 334
string
getTitle()
at
line 342
string
getPath()
at
line 352
array
getExtensionDependencyIds()
The IDs of all Flarum extensions that this extension depends on.
at
line 363
array
getOptionalDependencyIds()
The IDs of all Flarum extensions that this extension should be booted after if enabled.
at
line 412
getLinks()
Compile a list of links for this extension.
at
line 457
bool
hasAssets()
Tests whether the extension has assets.
at
line 465
copyAssetsTo(Filesystem $target)
at
line 486
bool
hasMigrations()
Tests whether the extension has migrations.
at
line 512
array
toArray()
Generates an array result for the object.
at
line 532
string|null
getReadme()
Gets the rendered contents of the extension README file as a HTML string.