<?php
declare(strict_types=1);

namespace ROITheme\Shared\Infrastructure\Services;

use ROITheme\Shared\Domain\Contracts\ServerRequestProviderInterface;

/**
 * Implementacion WordPress del proveedor de request HTTP
 *
 * Encapsula el acceso a $_SERVER.
 *
 * v1.1: Nuevo - extrae logica de acceso a superglobales
 *
 * @package ROITheme\Shared\Infrastructure\Services
 */
final class WordPressServerRequestProvider implements ServerRequestProviderInterface
{
    public function getRequestUri(): string
    {
        return $_SERVER['REQUEST_URI'] ?? '';
    }
}
