Skip to content
docsv0.9.1

BootContext

Everything {@see \Milpa\Runtime\Kernel::boot()} has already wired by the time the plugin-boot phase starts — handed to the strategy as one immutable value. `config` is the raw `$config` array `boot()` received, verbatim: the inline strategy reads `plugins`/`hostProfile`/`evaluatedAt`/`name` from it; custom strategies may read their own keys without the kernel having to know them.

BootContext::__construct()

public function __construct(Milpa\Interfaces\Di\DIContainerInterface $container, Milpa\Interfaces\Event\MilpaEventDispatcherInterface $dispatcher, string $root, array $config, ?Milpa\Interfaces\Tooling\ToolRegistryInterface $toolRegistry):

Parameters

Parameters of __construct()
NameTypeDescription
$containerMilpa\Interfaces\Di\DIContainerInterface
$dispatcherMilpa\Interfaces\Event\MilpaEventDispatcherInterface
$rootstring
$configarray<string, mixed>
$toolRegistry?Milpa\Interfaces\Tooling\ToolRegistryInterface