<?php
/**
 * Its used for dependacy check
 *
 * @since: 21/09/2021
 * @author: Sarwar Hasan
 * @version 1.0.0
 * @package VitePos\Libs
 */

namespace Minicart_Lite\Libs;

use Appsbd_Lite\V5\libs\WP_Loader;

if ( ! class_exists( __NAMESPACE__ . '\Minicart_Loader' ) ) {
	/**
	 * Class Vitepos_Loader
	 *
	 * @package VitePos\Libs
	 */
	class Minicart_Loader extends WP_Loader {

		/**
		 * The set details is generated by appsbd
		 *
		 * @return mixed|void
		 */
		public function set_details() {
			$this->plugin_file     = 'woo-mini-cart-drawer/woo-mini-cart-drawer.php';
			$this->pro_plugin_file = 'woominicartpro/woominicartpro.php';
		}

		/**
		 * The load before ready is generated by appsbd
		 *
		 * @param bool $result Its a result.
		 *
		 * @return bool
		 */
		public function load_before_ready( $result ) {
			 new Minicart_Addons( $result, $this->base_file, $this );
			return parent::load_before_ready( $result );
		}
	}
}
