Quiote
Main framework class used for autoloading and initial bootstrapping of Quiote.
Synopsis
Section titled “Synopsis”final class Quiote
| Since | 1.0.0 |
| Source | Quiote.php |
Methods
Section titled “Methods”| Method | Description |
|---|---|
| [`bootstrap(string | null $environment = null, string |
| [`context(string | null $name = null, bool $prime = false): Context`](#context) |
| [`prewarm(string | null $context = null): void`](#prewarm) |
bootstrap()
Section titled “bootstrap()”public static function bootstrap(string|null $environment = null, string|array<int, string>|null $contexts = null, array<string, mixed> $options = []): array{contexts: array<string, \Quiote\Context>}
Bootstrap the Quiote core (environment + optional context pre-initialization).
[‘prewarm’ => bool] force prewarm
| Parameter | Type | Description |
|---|---|---|
$environment | `string“ | “null` |
$contexts | `string“ | array<int, string>“ |
$options | array``<``string``, ``mixed``> | [‘prewarm’ => bool] force prewarm |
Returns array{contexts: array<string, \Quiote\Context>} — Context map (may be empty)
context()
Section titled “context()”public static function context(string|null $name = null, bool $prime = false): Context
Retrieve (and optionally prime) a context instance.
Prime controller/output types immediately
| Parameter | Type | Description |
|---|---|---|
$name | `string“ | “null` |
$prime | bool | Prime controller/output types immediately |
Returns Context
prewarm()
Section titled “prewarm()”public static function prewarm(string|null $context = null): void
Prewarm APCu configuration and translation caches to avoid first-request latency.
Context name for context-specific caches (routing, factories)
| Parameter | Type | Description |
|---|---|---|
$context | `string“ | “null` |