<?php

namespace Dokan\TryAura;

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

use Dokan\TryAura\DependencyManagement\Container;

/**
 * TryAura Container Class.
 *
 * @since 1.0.0
 */
final class TryAura {

	/**
	 * Holds the container instance, initialized to null.
	 *
	 * @since 1.0.0
	 */
	private static ?Container $container = null;

	/**
	 * Returns the shared instance of the Container.
	 *
	 * @since 1.0.0
	 *
	 * @return Container The shared Container instance.
	 */
	public static function container(): Container {
		if (! self::$container) {
			self::$container = new Container();
		}

		return self::$container;
	}

	public static function is_pro_exists() {
		return apply_filters( 'tryaura_is_pro_exists', false );
	}
}
