<?php
/**
 * The plugin bootstrap file.
 *
 * Introduction to the structure of this plugin's files:
 *
 * docket-connector/src/class-PluginData.php - hard-coded information about the plugin, such as plugin-slug and plugin_slug.
 * docket-connector/src/class-Bootstrap.php - gets the plugin going, including setting required/recommended plugin dependencies
 *
 * docket-connector/src/Admin - admin-specific functionality
 * docket-connector/src/Common - functionality shared between the admin area and the public-facing parts
 *
 * docket-connector/src/Common/Utilities - generic functions for things like debugging, processing multidimensional arrays, handling datetimes, etc.
 * docket-connector/src/Core - plugin core to register hooks, load files etc
 *
 * This file is read by WordPress to generate the plugin information in the plugin
 * admin area. This file also includes all of the dependencies used by the plugin,
 * registers the activation and deactivation functions, and defines a function
 * that starts the plugin.
 *
 * @package           DocketConnector
 *
 * @wordpress-plugin
 * Plugin Name:       Docket Connector
 * Description:       Create invoices within your Docket account from Gravity Forms.
 * Version:           1.1.2
 * Author:            Ki Design LLC
 * Plugin URI:        https://wordpress.org/plugins/docket-connector/
 * Author URI:        https://www.yourdocket.com/
 * License:           GPL version 3 or any later version
 * License URI:       https://www.gnu.org/licenses/gpl-3.0.html
 * Text Domain:       docket-connector
 *
 ***
 *
 *     This plugin is free software: you can redistribute it and/or modify
 *     it under the terms of the GNU General Public License as published by
 *     the Free Software Foundation, either version 3 of the License, or
 *     any later version.
 *
 *     This plugin is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 *     GNU General Public License for more details.
 *
 ***
 *
 *     This plugin was helped by Clifford Paulick's Plugin Boilerplate,
 *     available free at https://github.com/cliffordp/docket-connector
 *     You are invited to use it for your own WordPress projects.
 */

// Cannot `declare( strict_types=1 );` to avoid fatal if prior to PHP 7.0.0, since we did not yet verify the PHP version.

namespace DocketConnector;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Abort if this file is called directly.
}

/**
 * Autoloading, via Composer.
 *
 * @link https://getcomposer.org/doc/01-basic-usage.md#autoloading
 */
require_once( 'vendor/autoload.php' );

// Define Constants

/**
 * Register Activation and Deactivation Hooks
 * This action is documented in src/Core/class-Activator.php
 */
register_activation_hook( __FILE__, [ __NAMESPACE__ . '\Core\Activator', 'activate' ] );

/**
 * The code that runs during plugin deactivation.
 * This action is documented src/Core/class-Deactivator.php
 */
register_deactivation_hook( __FILE__, [ __NAMESPACE__ . '\Core\Deactivator', 'deactivate' ] );

// Begin execution of the plugin.
( new Bootstrap() )->init();