chore: remove retundant .env files. some additional fixes

This commit is contained in:
2025-10-27 19:07:12 +01:00
parent 62999c40cd
commit 8ef2b8547d
21 changed files with 74 additions and 1570 deletions

View File

@@ -15,21 +15,13 @@ final readonly class RateLimiterInitializer
{
public function __construct(
private Container $container
) {
}
#[Initializer]
public function createStorageInterface(): StorageInterface
{
$cache = $this->container->get(Cache::class);
return new CacheStorage($cache);
}
) {}
#[Initializer]
public function createRateLimiter(): RateLimiter
{
$storage = $this->container->get(StorageInterface::class);
$cache = $this->container->get(Cache::class);
$storage = new CacheStorage($cache);
return new RateLimiter($storage);
}

View File

@@ -7,8 +7,10 @@ namespace App\Framework\RateLimit\Storage;
use App\Framework\Cache\Cache;
use App\Framework\Cache\CacheKey;
use App\Framework\Core\ValueObjects\Duration;
use App\Framework\DI\Attributes\DefaultImplementation;
use App\Framework\RateLimit\TokenBucket;
#[DefaultImplementation]
final readonly class CacheStorage implements StorageInterface
{
public function __construct(