<?php
/**
 * NotFound module bootstrap.
 *
 * @package SEOvaultSEO\NotFound
 */

namespace SEOvaultSEO\NotFound;

use SEOvaultSEO\Compatibility\Detector;

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

/**
 * Wires NotFound fallback and recovery features.
 */
class Bootstrap {

	/**
	 * Initialize the NotFound module.
	 */
	public static function init() {
		if ( ! Detector::should_output_seo() ) {
			return;
		}

		// Keep the hook registered even in theme mode so programmatic option
		// changes made later in the request are respected.
		FallbackRedirector::init();
		RecoveryRenderer::init();
	}
}
