* @link https://www.fireplugins.com * @copyright Copyright © 2025 FirePlugins All Rights Reserved * @license GNU GPLv3 or later */ namespace FireBox\Core; if (!defined('ABSPATH')) { exit; // Exit if accessed directly. } class HelperMiddleware { public $factory; public $wpdb; public function __construct($factory = null) { if (empty($factory)) { $factory = new \FPFramework\Base\Factory(); } $this->factory = $factory; $this->wpdb = $this->factory->getDbo(); } }