class Extension implements Arrayable
Constants
LOGO_MIMETYPES |
|
Properties
Methods
<p>Get the list of flarum extensions that this extension depends on.</p>
<p>The IDs of all Flarum extensions that this extension depends on.</p>
<p>The IDs of all Flarum extensions that this extension should be booted after if enabled.</p>
<p>Gets the rendered contents of the extension README file as a HTML string.</p>
Details
at
line 111
__construct($path, array $composerJson)
at
line 118
static protected
nameToId($name)
at
line 129
protected
assignId()
<p>Assigns the id for the extension used globally.</p>
at
line 137
extend(Container $container)
at
line 151
__get($name)
<p>{@inheritdoc}</p>
at
line 159
__isset($name)
<p>{@inheritdoc}</p>
at
line 172
mixed
composerJsonAttribute($name)
<p>Dot notation getter for composer.json attributes.</p>
at
line 193
bool
isInstalled()
at
line 219
calculateDependencies($extensionSet)
<p>Get the list of flarum extensions that this extension depends on.</p>
at
line 241
string
getVersion()
at
line 251
array|null
getIcon()
<p>Loads the icon information from the composer.json.</p>
at
line 277
string
getIconStyles()
at
line 301
enable(Container $container)
at
line 311
disable(Container $container)
at
line 323
string
getId()
<p>The raw path of the directory under extensions.</p>
at
line 331
string
getTitle()
at
line 339
string
getPath()
at
line 349
array
getExtensionDependencyIds()
<p>The IDs of all Flarum extensions that this extension depends on.</p>
at
line 360
array
getOptionalDependencyIds()
<p>The IDs of all Flarum extensions that this extension should be booted after if enabled.</p>
at
line 409
getLinks()
<p>Compile a list of links for this extension.</p>
at
line 454
bool
hasAssets()
<p>Tests whether the extension has assets.</p>
at
line 462
copyAssetsTo(Filesystem $target)
at
line 483
bool
hasMigrations()
<p>Tests whether the extension has migrations.</p>
at
line 510
array
toArray()
<p>Generates an array result for the object.</p>
at
line 530
string|null
getReadme()
<p>Gets the rendered contents of the extension README file as a HTML string.</p>