ManagerConfig
Host-injected configuration for the PluginsManager: every value the legacy manager used to read from globals, env, or static kernel calls.
ManagerConfig::__construct()
public function __construct(string $cacheDir, ?string $hostManifestPath, bool $devMode, string $environment, string $namespacePrefix = 'Milpa\Plugins'):Parameters
| Name | Type | Description |
|---|---|---|
| $cacheDir | string | Directory holding enabled_plugins.php and plugins.php. |
| $hostManifestPath | (string | null) | Path to the host's milpa.json (hostProfile), or null when the host has none. |
| $devMode | bool | True skips the plugin-graph cache entirely (scan fresh every boot). |
| $environment | string | 'CLI' or 'Web' — gates tool registration by plugin type. |
| $namespacePrefix | string | Base namespace plugin classes are resolved under. |