<?php

/**
 * Deterministic load/activation safety gate for generated plugin PHP.
 *
 * @package LolaCore\PluginBuilder\Generation
 * @license GPL-2.0-or-later
 */

declare(strict_types=1);

namespace LolaCore\PluginBuilder\Generation;

use LolaCore\Builder\Safety\StaticSafetyGate;
use LolaCore\PluginBuilder\Generation\Safety\SafetyRuleRegistry;

if (! defined('ABSPATH')) {
	exit;
}

/**
 * Runs Capa A static safety rules on the LLM's original PHP artifact.
 *
 * Compatibility subclass: the engine lives in
 * LolaCore\Builder\Safety\StaticSafetyGate (FS-S1 backbone extraction); this
 * name wires in the Plugin Builder rule registry (lolacore_pb_safety_rules).
 */
class PluginStaticSafetyGate extends StaticSafetyGate {

	public function __construct( ?SafetyRuleRegistry $registry = null ) {
		parent::__construct($registry ?? new SafetyRuleRegistry());
	}
}
