<?php
/**
 * @link              https://www.planaday.nl
 * @since             1.0.0
 * @package           Planaday_Connector
 *
 * @wordpress-plugin
 * Plugin Name: Planaday Connector
 * Plugin URI: https://planaday.freshdesk.com/support/solutions/articles/11000058859-wordpress-in-website-met-publieke-api
 * Description: Toon het cursusaanbod vanuit Planaday op jouw website met de verschillende shortcodes die deze WordPress plugin beschikbaar stelt
 * Version: 1.2.8
 * Stable tag: 1.2.8
 * Requires at least: 5.9
 * Tested up to: 6.9
 * Requires PHP: 8.1
 * Author: Planaday development
 * Author URI: https://www.planaday.nl
 * License: GPL-2.0+
 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
 * Text Domain: planaday-connector
 * Domain Path: /languages
 */

if ( ! defined( 'ABSPATH' ) ) exit;
require_once "src/Planaday/Utility/AutoLoader.php";
use Planaday\Utility\AutoLoader;
new AutoLoader(__DIR__ . '/src');

use Planaday\{
	Platform\WordpressConfig\WPPlatformConnector,
	Database\MySQL\MySQLConnector,
	Api\V1\V1Connector
};

$planadayConnector = new Planaday\Planaday(
	WPPlatformConnector::class,
	MySQLConnector::class,
	V1Connector::class,
	'planaday-connector',
	'padc',
	explode('.', get_file_data( __FILE__, [ 'Version' => 'Version' ], false )['Version']),
	str_replace('\\','/', substr(__FILE__, strlen(dirname(__DIR__)) + 1)),
);
$planadayConnector->run();