<?php

// Prevent direct access
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

// Only enable error display in development environments
if (defined('WP_DEBUG') && WP_DEBUG) {
    ini_set('display_errors', 1); // phpcs:ignore Squiz.PHP.DiscouragedFunctions.Discouraged -- Required for CLI debugging in development
} elseif (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG) {
    ini_set('display_errors', 1); // phpcs:ignore Squiz.PHP.DiscouragedFunctions.Discouraged -- Required for CLI debugging
}

require_once __DIR__ . "/../bootstrap/Start.php";

$unify_boot = new _Self\Bootstrap\Start();

// Output JSON content for loader (already encoded by wp_json_encode in run() method)
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- JSON output from wp_json_encode is already safe
print $unify_boot->run();
echo "\n";
