phase a audit
This commit is contained in:
23
src/Ingest/GuardrailValidator.php
Normal file
23
src/Ingest/GuardrailValidator.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Ingest;
|
||||
|
||||
use App\Index\IndexMetaManager;
|
||||
|
||||
final readonly class GuardrailValidator
|
||||
{
|
||||
public function __construct(
|
||||
private IndexMetaManager $metaManager,
|
||||
) {}
|
||||
|
||||
/**
|
||||
* Wirft eine Exception, wenn ein lokaler Ingest nicht kompatibel ist
|
||||
* und ein Global Reindex erforderlich ist.
|
||||
*/
|
||||
public function validateOrThrow(): void
|
||||
{
|
||||
$this->metaManager->validateAgainstCurrent();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user