<?php
/**
 * Version: 1.0
 *
 * @package Edith Framework
 */

namespace FinchCart\Admin\Edith;

use FinchCart\Admin\Edith\includes\ShortcodeBuilder\ShortcodeBuilder;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

/**
 * The Edith Framework class
 */
class EdithFramework {

	/**
	 * Class Constructor.
	 */
	function __construct() {
		$this->file_includes();
		$this->init_classes();
	}

	/**
	 * Load the required files
	 *
	 * @return void
	 */
	public function file_includes() {
		if ( ! class_exists( 'EDITH' ) ) {
			require_once __DIR__ . '/includes/Framework/edith-framework.php';
		}
	}

	/**
	 * Initialize the classes.
	 *
	 * @return void
	 */
	public function init_classes() {
		new ShortcodeBuilder();
	}
}
