<?php
/** 
 * @package     VikRestaurants
 * @subpackage  core
 * @author      E4J s.r.l.
 * @copyright   Copyright (C) 2023 E4J s.r.l. All Rights Reserved.
 * @license     http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * @link        https://vikwp.com
 */

namespace E4J\VikRestaurants\Platform\CMS;

// No direct access
defined('ABSPATH') or die('No script kiddies please!');

use E4J\VikRestaurants\Platform\CMS\WordPress\Dispatcher as WordPressDispatcher;
use E4J\VikRestaurants\Platform\CMS\WordPress\Form\FormFactory as WordPressFormFactory;
use E4J\VikRestaurants\Platform\CMS\WordPress\PaymentFactory as WordPressPaymentFactory;
use E4J\VikRestaurants\Platform\CMS\WordPress\Uri as WordPressUri;
use E4J\VikRestaurants\Platform\PlatformAware;

/**
 * Implements the WordPress platform interface.
 * 
 * @since 1.9
 */
class WordPressPlatform extends PlatformAware
{
	/**
	 * @inheritDoc
	 */
	protected function createDispatcher()
	{
		return new WordPressDispatcher;
	}

	/**
	 * @inheritDoc
	 */
	protected function createFormFactory()
	{
		return new WordPressFormFactory;
	}

	/**
	 * @inheritDoc
	 */
	protected function createPaymentFactory()
	{
		return new WordPressPaymentFactory;
	}

	/**
	 * @inheritDoc
	 */
	protected function createUri()
	{
		return new WordPressUri;
	}
}
