fix(structure): Correct case-sensitivity for Linux compatibility
Rename folders to match PHP PSR-4 autoloading conventions: - schemas → Schemas - shared → Shared - Wordpress → WordPress (in all locations) Fixes deployment issues on Linux servers where filesystem is case-sensitive. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace ROITheme\Shared\Application\UseCases\GetComponentSettings;
|
||||
|
||||
use ROITheme\Shared\Domain\Contracts\ComponentSettingsRepositoryInterface;
|
||||
|
||||
/**
|
||||
* Caso de uso para obtener las configuraciones de un componente
|
||||
*
|
||||
* Application Layer - Orquesta la l<>gica de negocio
|
||||
*
|
||||
* @package ROITheme\Shared\Application\UseCases\GetComponentSettings
|
||||
*/
|
||||
final class GetComponentSettingsUseCase
|
||||
{
|
||||
public function __construct(
|
||||
private ComponentSettingsRepositoryInterface $repository
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Ejecuta el caso de uso
|
||||
*
|
||||
* @param string $componentName Nombre del componente
|
||||
* @return array<string, array<string, mixed>> Configuraciones agrupadas por grupo
|
||||
*/
|
||||
public function execute(string $componentName): array
|
||||
{
|
||||
// Validar entrada
|
||||
if (empty($componentName)) {
|
||||
return [];
|
||||
}
|
||||
|
||||
// Obtener configuraciones del repositorio
|
||||
$settings = $this->repository->getComponentSettings($componentName);
|
||||
|
||||
// Si no hay configuraciones, devolver array vac<61>o
|
||||
if (empty($settings)) {
|
||||
return [];
|
||||
}
|
||||
|
||||
return $settings;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user