maurobonfietti/api-rest-slimphp

View on GitHub
src/Service/BaseService.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

declare(strict_types=1);

namespace App\Service;

abstract class BaseService
{
    protected const DEFAULT_PER_PAGE_PAGINATION = 5;

    protected static function isRedisEnabled(): bool
    {
        return filter_var($_SERVER['REDIS_ENABLED'], FILTER_VALIDATE_BOOLEAN);
    }
}