Documentation

Core Package — The Kernel

7 core singletons, facades, 20 models, console commands, and extension boot process

Last updated: Feb 09, 2026

Core Package — The Kernel

Cartxis\Core is the foundational package. It registers 7 singletons that other packages depend on:
Container KeyClassPurpose
vortex.hookHookServiceEvent hook system for extensions
vortex.menuMenuServiceDynamic admin & shop menu builder
vortex.settingSettingServiceDatabase-backed key/value settings
vortex.extensionExtensionServiceExtension discovery, install, activate lifecycle
vortex.themeThemeServiceTheme management
vortex.theme.resolverThemeViewResolverTheme-aware Inertia page resolution
vortex.payment.gatewayPaymentGatewayManagerPayment gateway registry

Core Facades

FacadeSingleton
Extensionvortex.extension
Hookvortex.hook
Menuvortex.menu
Settingvortex.setting

Core Models (20)

Channel, Currency, EmailConfiguration, EmailTemplate, Extension, Locale, MenuItem, PaymentMethod, Permission, Role, Setting, ShippingMethod, ShippingRate, TaxClass, TaxRate, TaxRule, TaxZone, TaxZoneLocation, Theme, ThemeSetting

Core Console Commands

CommandPurpose
cartxis:extensions:listList all discovered extensions
cartxis:extensions:syncSync filesystem extensions to database
cartxis:extensions:installInstall an extension
cartxis:extensions:activateActivate an installed extension
cartxis:extensions:deactivateDeactivate an extension
cartxis:extensions:uninstallRemove an extension

Extension Boot

During CoreServiceProvider::boot(), all active extensions are dynamically loaded. The service provider iterates the extensions table, discovers each extension's manifest, and registers its ServiceProvider at runtime.