24 lines
487 B
PHP
24 lines
487 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Support\Baselines;
|
|
|
|
use RuntimeException;
|
|
|
|
final class BaselineFullContentRolloutGate
|
|
{
|
|
public function enabled(): bool
|
|
{
|
|
return (bool) config('tenantpilot.baselines.full_content_capture.enabled', false);
|
|
}
|
|
|
|
public function assertEnabled(): void
|
|
{
|
|
if (! $this->enabled()) {
|
|
throw new RuntimeException('Baseline full-content capture is disabled by rollout configuration.');
|
|
}
|
|
}
|
|
}
|
|
|