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 Key | Class | Purpose |
|---|---|---|
vortex.hook | HookService | Event hook system for extensions |
vortex.menu | MenuService | Dynamic admin & shop menu builder |
vortex.setting | SettingService | Database-backed key/value settings |
vortex.extension | ExtensionService | Extension discovery, install, activate lifecycle |
vortex.theme | ThemeService | Theme management |
vortex.theme.resolver | ThemeViewResolver | Theme-aware Inertia page resolution |
vortex.payment.gateway | PaymentGatewayManager | Payment gateway registry |
Core Facades
| Facade | Singleton |
|---|---|
Extension | vortex.extension |
Hook | vortex.hook |
Menu | vortex.menu |
Setting | vortex.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
| Command | Purpose |
|---|---|
cartxis:extensions:list | List all discovered extensions |
cartxis:extensions:sync | Sync filesystem extensions to database |
cartxis:extensions:install | Install an extension |
cartxis:extensions:activate | Activate an installed extension |
cartxis:extensions:deactivate | Deactivate an extension |
cartxis:extensions:uninstall | Remove 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.
