Skip to content

Kernel

Boots the framework and hands the request loop to a worker runtime.

The Kernel deliberately knows nothing about how requests arrive or responses leave: that is the selected WorkerRuntimeInterface’s job, and everything in between is WorkerLoop’s. Its own remit is the three steps around that — bootstrap, pick the runtime, start it.

class Kernel

SourceRuntime/Kernel.php
MethodDescription
create(array<string, mixed> $options = []): KernelCreate kernel with optional overrides.
run(): voidBootstraps the framework and hands control to the selected worker runtime.

public static function create(array<string, mixed> $options = []): Kernel

Create kernel with optional overrides.

ParameterTypeDescription
$optionsarray``<``string``, ``mixed``>

Returns Kernel

public function run(): void

Bootstraps the framework and hands control to the selected worker runtime.

Resolves the runtime (create() option, then $QUIOTE_WORKER_RUNTIME, then core.worker_runtime, then auto-detection), publishes it via WorkerRuntimeInfo, configures WorkerManager’s recycling for a persistent host, and starts the runtime’s loop. Returns only when the runtime stops serving; under a one-request-per-process host that is after the single response.

ThrowsWhen
RuntimeExceptionif an explicitly named runtime reports that it is not hosting this process.