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:
16
author.php
16
author.php
@@ -7,7 +7,7 @@
|
||||
*
|
||||
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#author
|
||||
*
|
||||
* @package Apus_Theme
|
||||
* @package ROI_Theme
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
@@ -40,7 +40,7 @@ get_header();
|
||||
'',
|
||||
sprintf(
|
||||
/* translators: %s: author name */
|
||||
esc_attr__( 'Avatar for %s', 'apus-theme' ),
|
||||
esc_attr__( 'Avatar for %s', 'roi-theme' ),
|
||||
esc_html( $author->display_name )
|
||||
),
|
||||
array(
|
||||
@@ -56,7 +56,7 @@ get_header();
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %s: author display name */
|
||||
esc_html__( 'Posts by %s', 'apus-theme' ),
|
||||
esc_html__( 'Posts by %s', 'roi-theme' ),
|
||||
'<span class="author-name">' . esc_html( $author->display_name ) . '</span>'
|
||||
);
|
||||
?>
|
||||
@@ -79,7 +79,7 @@ get_header();
|
||||
$post_count = count_user_posts( $author->ID, 'post', true );
|
||||
printf(
|
||||
/* translators: %s: number of posts */
|
||||
esc_html( _n( '%s post', '%s posts', $post_count, 'apus-theme' ) ),
|
||||
esc_html( _n( '%s post', '%s posts', $post_count, 'roi-theme' ) ),
|
||||
esc_html( number_format_i18n( $post_count ) )
|
||||
);
|
||||
?>
|
||||
@@ -120,15 +120,15 @@ get_header();
|
||||
'prev_text' => sprintf(
|
||||
'%s <span class="nav-prev-text">%s</span>',
|
||||
'<span class="nav-icon" aria-hidden="true">«</span>',
|
||||
esc_html__( 'Previous', 'apus-theme' )
|
||||
esc_html__( 'Previous', 'roi-theme' )
|
||||
),
|
||||
'next_text' => sprintf(
|
||||
'<span class="nav-next-text">%s</span> %s',
|
||||
esc_html__( 'Next', 'apus-theme' ),
|
||||
esc_html__( 'Next', 'roi-theme' ),
|
||||
'<span class="nav-icon" aria-hidden="true">»</span>'
|
||||
),
|
||||
'before_page_number' => '<span class="screen-reader-text">' . esc_html__( 'Page', 'apus-theme' ) . ' </span>',
|
||||
'aria_label' => esc_attr__( 'Posts navigation', 'apus-theme' ),
|
||||
'before_page_number' => '<span class="screen-reader-text">' . esc_html__( 'Page', 'roi-theme' ) . ' </span>',
|
||||
'aria_label' => esc_attr__( 'Posts navigation', 'roi-theme' ),
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user