fix: Corregir case de namespaces para compatibilidad Linux/PSR-4
Cambios realizados: - \API\ → \Api\ (4 archivos) - \WordPress → \Wordpress (12 archivos) - \DI\ → \Di\ (4 archivos) Los namespaces ahora coinciden exactamente con la estructura de carpetas (Api/, Wordpress/, Di/) para garantizar compatibilidad con sistemas case-sensitive (Linux/producción) y cumplimiento de PSR-4. Archivos corregidos: 16 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace ROITheme\Admin\Infrastructure\API\WordPress;
|
||||
namespace ROITheme\Admin\Infrastructure\Api\Wordpress;
|
||||
|
||||
use ROITheme\Shared\Application\UseCases\SaveComponentSettings\SaveComponentSettingsUseCase;
|
||||
|
||||
@@ -126,7 +126,7 @@ final class AdminAjaxHandler
|
||||
// Usar repositorio para restaurar valores
|
||||
if ($this->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([
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user