# firebox/2.0.12/Inc/Core/HelperMiddleware.php

FireBox – WooCommerce Popup Builder, Exit Intent Popup, Email Optin &amp; Cart Abandonment, version 2.0.12. 38 lines.

- Page: https://pluginprobe.com/plugins/firebox/2.0.12/code/Inc/Core/HelperMiddleware.php
- Raw: https://pluginprobe.com/plugins/firebox/2.0.12/raw/Inc/Core/HelperMiddleware.php
- Modified: 2023-06-02T08:12:22+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/firebox/2.0.12/code/Inc/Core/HelperMiddleware.php#L10-L20`.

```php
<?php
/**
 * @package         FireBox
 * @version         2.0.12 Free
 * 
 * @author          FirePlugins <info@fireplugins.com>
 * @link            https://www.fireplugins.com
 * @copyright       Copyright © 2023 FirePlugins All Rights Reserved
 * @license         GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> 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();

        
    }
}
```
