class ExtensionManager

Properties

protected $config
protected $app
protected $migrator
protected Dispatcher $dispatcher
protected Filesystem $filesystem

Methods

__construct(SettingsRepositoryInterface $config, Application $app, Migrator $migrator, Dispatcher $dispatcher, Filesystem $filesystem)

No description

getInfo()

No description

enable($extension)

No description

disable($extension)

No description

uninstall($extension)

No description

publishAssets(string $extension)

<p>Copy the assets from an extension's assets directory into public view.</p>

unpublishAssets(string $extension)

<p>Delete an extension's assets from public view.</p>

string
getAsset(string $extension, string $path)

<p>Get the path to an extension's published asset.</p>

migrate($extension, $up = true)

No description

migrateDown($extension)

No description

getMigrator()

No description

getEnabled()

No description

setEnabled(array $enabled)

No description

isEnabled($extension)

No description

getExtensionsDir()

No description

Details

__construct(SettingsRepositoryInterface $config, Application $app, Migrator $migrator, Dispatcher $dispatcher, Filesystem $filesystem)

Parameters

SettingsRepositoryInterface $config
Application $app
Migrator $migrator
Dispatcher $dispatcher
Filesystem $filesystem

getInfo()

enable($extension)

Parameters

$extension

disable($extension)

Parameters

$extension

uninstall($extension)

Parameters

$extension

protected publishAssets(string $extension)

<p>Copy the assets from an extension's assets directory into public view.</p>

Parameters

string $extension

protected unpublishAssets(string $extension)

<p>Delete an extension's assets from public view.</p>

Parameters

string $extension

string getAsset(string $extension, string $path)

<p>Get the path to an extension's published asset.</p>

Parameters

string $extension
string $path

Return Value

string

migrate($extension, $up = true)

Parameters

$extension
$up

migrateDown($extension)

Parameters

$extension

getMigrator()

protected getEnabled()

protected setEnabled(array $enabled)

Parameters

array $enabled

isEnabled($extension)

Parameters

$extension

protected getExtensionsDir()