PluginsManagerInterface
Discovers, registers, and boots the plugins that make up the running application.
PluginsManagerInterface::addPluginPath()
abstract public function addPluginPath(string $path): voidRegisters a directory to be scanned for plugins. No-op if the path was already registered.
Parameters
| Nombre | Tipo | Descripción |
|---|---|---|
| $path | string |
PluginsManagerInterface::loadPlugins()
abstract public function loadPlugins(): voidDiscovers plugins under the registered paths, instantiates the enabled ones through the container, and boots them.
PluginsManagerInterface::getToolProviderPromptSections()
abstract public function getToolProviderPromptSections(): arrayGet prompt sections from all plugins implementing ToolProviderInterface.
PluginsManagerInterface::getPlugins()
abstract public function getPlugins(): arrayReturns all booted plugin instances, keyed by plugin name.
PluginsManagerInterface::getPlugin()
abstract public function getPlugin(string $name): ?Milpa\app\Interfaces\Plugin\PluginInterfaceReturns a single booted plugin instance by name, or null if no such plugin has been booted.
Parameters
| Nombre | Tipo | Descripción |
|---|---|---|
| $name | string |
PluginsManagerInterface::isEnabled()
abstract public function isEnabled(string $name): boolWhether the given plugin name is currently enabled.
Parameters
| Nombre | Tipo | Descripción |
|---|---|---|
| $name | string |