for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?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);
}
protected static function isLoggerEnabled(): bool
return filter_var($_SERVER['LOGS_ENABLED'], FILTER_VALIDATE_BOOLEAN);