TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Ahondev/portfolio-v2/llms.txt
Use this file to discover all available pages before exploring further.
Kernel class is the single entry point that brings the entire WP SSR Framework to life. Call it once from your mu-plugin bootstrap file — it validates that ACF Pro is active, registers your service providers, and schedules every framework subsystem onto the correct WordPress action hook in deterministic priority order.
Requirements
Before any boot logic runs the Kernel constructor callscheckThemeRequirements(). It verifies that acf_add_options_page exists (i.e., ACF Pro is installed and active). If the check fails, the framework helper wp_exit() is called immediately — which wraps wp_die() with a formatted error message — preventing a broken site from loading silently.
Static Factory
new Kernel directly. This mirrors the fluent configuration style used throughout the framework and makes the bootstrap file easy to read at a glance.
Methods
withProviders()
An array of fully-qualified service provider class names. Each class must extend
BaseServiceProvider. Providers are instantiated and sorted by their $priority property before booting.self to allow method chaining directly into boot().
boot()
Seals the configuration and registers every framework subsystem onto WordPress action hooks. Returns the Kernel instance so you can keep a reference if needed (rarely necessary).
Boot Order
The Kernel hooks subsystems in a carefully chosen order so that each layer is ready before the next depends on it.| Hook | Priority | Subsystem |
|---|---|---|
init | 10 | EloquentManager — boot the CPT model registry |
init | 20 | PostType::init() — register custom post types & taxonomies |
rest_api_init | 30 | ApiRouter::init() — register REST routes under api/v1 |
after_setup_theme | — | Option::init() — register ACF options pages |
admin_init | 40 | WP_Options::register() — register WordPress option wrappers |
wp_loaded | 1 | ComposerManager::registerComposers() — attach view composers |
wp_loaded | 5 | WebRouter::init()->handleRequest() — handle the incoming web request |
Service providers are registered synchronously before any hooks fire. Their
register() methods run immediately; boot() methods are deferred to the init hook using the provider’s own $priority.Full Bootstrap Example
This is the completewp-ssr.php bootstrap file that ships with the framework. Copy it as a starting point for your own mu-plugin.