Editor\Classes\ExtensionManager

Manages Editor extensions.

Protected properties

protected array $extensionClassNames

extensionClassNames is a collection of registered extensions

protected static $instance

Public methods

public void __clone()

public void __wakeup()

public static void forgetInstance()

Forget this singleton's instance if it exists

public void getExtensionByNamespace($namespace)

getExtensionByNamespace

Parameters
  • $namespace

public static void instance()

Create a new instance of this singleton.

public void listExtensions()

listExtensions returns a collection of registered extension objects

public void listJsFiles()

listJsFiles

public void listVueComponents()

listVueComponents

public void runCommand($namespace, $command)

runCommand

Parameters
  • $namespace
  • $command

Protected methods

protected void __construct()

Constructor.

protected void getExtension($className)

getExtension will create and validate an extension object

Parameters
  • $className

protected void init()

init initializes the extension manager

protected void makeExtension($className)

makeExtension will create an extension object from a class name

Parameters
  • $className

protected void registerExtensions()

registerExtensions will build a collection of registered extensions