Skip to content
docsv0.13.1

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

Parameters of __construct()
NameTypeDescription
$cacheDirstringDirectory 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.
$devModeboolTrue skips the plugin-graph cache entirely (scan fresh every boot).
$environmentstring'CLI' or 'Web' — gates tool registration by plugin type.
$namespacePrefixstringBase namespace plugin classes are resolved under.