diff --git a/Admin/Infrastructure/Api/WordPress/AdminMenuRegistrar.php b/Admin/Infrastructure/Api/WordPress/AdminMenuRegistrar.php index 9d701220..641e4d4a 100644 --- a/Admin/Infrastructure/Api/WordPress/AdminMenuRegistrar.php +++ b/Admin/Infrastructure/Api/WordPress/AdminMenuRegistrar.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace ROITheme\Admin\Infrastructure\Api\Wordpress; +namespace ROITheme\Admin\Infrastructure\Api\WordPress; use ROITheme\Admin\Domain\Contracts\MenuRegistrarInterface; use ROITheme\Admin\Domain\ValueObjects\MenuItem; diff --git a/Admin/Shared/Infrastructure/Api/WordPress/AdminAjaxHandler.php b/Admin/Shared/Infrastructure/Api/WordPress/AdminAjaxHandler.php index cb84f69d..f149c328 100644 --- a/Admin/Shared/Infrastructure/Api/WordPress/AdminAjaxHandler.php +++ b/Admin/Shared/Infrastructure/Api/WordPress/AdminAjaxHandler.php @@ -1,7 +1,7 @@ saveComponentSettingsUseCase !== null) { global $wpdb; - $repository = new \ROITheme\Shared\Infrastructure\Persistence\Wordpress\WordPressComponentSettingsRepository($wpdb); + $repository = new \ROITheme\Shared\Infrastructure\Persistence\WordPress\WordPressComponentSettingsRepository($wpdb); $updated = $repository->resetToDefaults($component, $schemaPath); wp_send_json_success([ diff --git a/Public/ContactForm/Infrastructure/Api/WordPress/ContactFormAjaxHandler.php b/Public/ContactForm/Infrastructure/Api/WordPress/ContactFormAjaxHandler.php index 94331556..23c69ba3 100644 --- a/Public/ContactForm/Infrastructure/Api/WordPress/ContactFormAjaxHandler.php +++ b/Public/ContactForm/Infrastructure/Api/WordPress/ContactFormAjaxHandler.php @@ -1,7 +1,7 @@ registerAll(); // === ADMIN AJAX HANDLER === - $adminAjaxHandler = new \ROITheme\Admin\Shared\Infrastructure\Api\Wordpress\AdminAjaxHandler( + $adminAjaxHandler = new \ROITheme\Admin\Shared\Infrastructure\Api\WordPress\AdminAjaxHandler( $saveComponentSettingsUseCase, $fieldMapperRegistry ); $adminAjaxHandler->register(); // Crear y registrar el handler AJAX para el Contact Form (público) - $contactFormAjaxHandler = new \ROITheme\Public\ContactForm\Infrastructure\Api\Wordpress\ContactFormAjaxHandler( + $contactFormAjaxHandler = new \ROITheme\Public\ContactForm\Infrastructure\Api\WordPress\ContactFormAjaxHandler( $container->getComponentSettingsRepository() ); $contactFormAjaxHandler->register(); // Crear y registrar el handler AJAX para Newsletter (público) - $newsletterAjaxHandler = new \ROITheme\Public\Footer\Infrastructure\Api\Wordpress\NewsletterAjaxHandler( + $newsletterAjaxHandler = new \ROITheme\Public\Footer\Infrastructure\Api\WordPress\NewsletterAjaxHandler( $container->getComponentSettingsRepository() ); $newsletterAjaxHandler->register();