<?php
/**
 * Internal bootstrap for the WooCommerce Security addon.
 *
 * @package Polanger_Dashboard_Tools
 */

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

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

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

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

if ( ! defined( 'PDT_WC_SECURITY_URL' ) ) {
  define( 'PDT_WC_SECURITY_URL', trailingslashit( plugins_url( 'addons/woocommerce-security', PDT_PLUGIN_FILE ) ) );
}

require_once PDT_WC_SECURITY_DIR . 'class-woocommerce-security.php';

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

  /**
   * Booted WooCommerce Security module instance.
   *
   * @var PDT_WooCommerce_Security
   */
  private $module;

  /**
   * Boot the bundled WooCommerce Security module.
   */
  public function __construct() {
    $this->module = new PDT_WooCommerce_Security();
  }
}
