singleton(BaseConstants::class, function () use ($constants) { return $constants; }); SharedCore::container()->singleton(Constants::class, function () use ($constants) { return $constants; }); // Register plugin-specific Request implementation SharedCore::container()->singleton(Request::class, function () use ($constants) { return new Request($constants); }); // Register plugin-specific Cache implementation SharedCore::container()->singleton(Cache::class, function () use ($constants) { return new Cache($constants->getSlug()); }); // Register plugin-specific DebugMode if needed SharedCore::container()->singleton(DebugMode::class, function () { return DebugMode::makeWithWpDebugConstant(); }); // Register PluginScripts SharedCore::container()->singleton(PluginScripts::class); } /** * This function boots the service provider. * * @since 3.0.0 */ public function boot(): void { } }