<?php
/**
 * Internal bootstrap for the Polanger Shield addon.
 *
 * @package Polanger_Dashboard_Tools
 */

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

if ( ! defined( 'POLANGER_SHIELD_VERSION' ) ) {
  define( 'POLANGER_SHIELD_VERSION', defined( 'PDT_VERSION' ) ? PDT_VERSION : '1.5.6' );
}

if ( ! defined( 'POLANGER_SHIELD_FILE' ) ) {
  define( 'POLANGER_SHIELD_FILE', __FILE__ );
}

if ( ! defined( 'POLANGER_SHIELD_DIR' ) ) {
  define( 'POLANGER_SHIELD_DIR', trailingslashit( __DIR__ ) );
}

if ( ! defined( 'POLANGER_SHIELD_URL' ) ) {
  define( 'POLANGER_SHIELD_URL', trailingslashit( plugins_url( 'addons/polanger-shield', PDT_PLUGIN_FILE ) ) );
}

require_once POLANGER_SHIELD_DIR . 'includes/class-polanger-shield.php';

/**
 * Suite-native addon bootstrapper.
 */
class PDT_Polanger_Shield_Addon {

  /**
   * Boot the bundled Shield module.
   */
  public function __construct() {
    Polanger_Shield::instance()->boot();
  }
}
