Fase 1: Estructura Base y DI Container - Clean Architecture

COMPLETADO: Fase 1 de la migración a Clean Architecture + POO

## Estructura de Carpetas
- ✓ Estructura completa de 4 capas (Domain, Application, Infrastructure, Presentation)
- ✓ Carpetas de Use Cases (SaveComponent, GetComponent, DeleteComponent, SyncSchema)
- ✓ Estructura de tests (Unit, Integration, E2E)
- ✓ Carpetas de schemas y templates

## Composer y Autoloading
- ✓ PSR-4 autoloading configurado para ROITheme namespace
- ✓ Autoloader optimizado regenerado

## DI Container
- ✓ DIContainer implementado con patrón Singleton
- ✓ Métodos set(), get(), has() para gestión de servicios
- ✓ Getters específicos para ComponentRepository, ValidationService, CacheService
- ✓ Placeholders que serán implementados en Fase 5
- ✓ Prevención de clonación y deserialización

## Interfaces
- ✓ ComponentRepositoryInterface (Domain)
- ✓ ValidationServiceInterface (Application)
- ✓ CacheServiceInterface (Application)
- ✓ Component entity placeholder (Domain)

## Bootstrap
- ✓ functions.php actualizado con carga de Composer autoloader
- ✓ Inicialización del DIContainer
- ✓ Helper function roi_container() disponible globalmente

## Tests
- ✓ 10 tests unitarios para DIContainer (100% cobertura)
- ✓ Total: 13 tests unitarios, 28 assertions
- ✓ Suite de tests pasando correctamente

## Validación
- ✓ Script de validación automatizado (48/48 checks pasados)
- ✓ 100% de validaciones exitosas

La arquitectura base está lista para la Fase 2.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
FrankZamora
2025-11-17 13:48:24 -06:00
parent b782ebceee
commit de5fff4f5c
149 changed files with 3187 additions and 9554 deletions

View File

@@ -5,7 +5,7 @@
* screen reader utilities, and minimum touch targets.
* Compliant with WCAG 2.1 Level AA standards.
*
* @package Apus_Theme
* @package ROI_Theme
* @since 1.0.0
*/
@@ -662,7 +662,7 @@ select:valid {
*/
/* Links del TOC con focus visible */
.apus-toc a:focus,
.roi-toc a:focus,
.toc-link:focus {
outline: 3px solid #0066cc;
outline-offset: 2px;
@@ -671,7 +671,7 @@ select:valid {
}
/* Item activo del TOC */
.apus-toc a.active,
.roi-toc a.active,
.toc-link.active {
font-weight: bold;
border-left: 4px solid #0066cc;
@@ -679,11 +679,11 @@ select:valid {
}
/* Botón toggle del TOC con ARIA */
.apus-toc-toggle[aria-expanded="true"]::before {
.roi-toc-toggle[aria-expanded="true"]::before {
content: "▼ ";
}
.apus-toc-toggle[aria-expanded="false"]::before {
.roi-toc-toggle[aria-expanded="false"]::before {
content: "▶ ";
}