<?php
/**
 * Plugin Name: ReCrawler
 * Description: ReCrawler is a small WordPress Plugin for quickly notifying search engines whenever their website content is created, updated, or deleted.
 * Version: 0.3.1
 * Author: Mikhail Kobzarev
 * Author URI: https://www.kobzarev.com/
 * Plugin URI: https://wordpress.org/plugins/recrawler/
 * GitHub Plugin URI: https://github.com/mihdan/recrawler
 * Requires PHP: 8.1
 * Requires at least: 6.0
 * License: GPLv2 or later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 *
 * @link https://github.com/mihdan/recrawler
 * @package Mihdan\ReCrawler
 */

namespace Mihdan\ReCrawler;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

define( 'RECRAWLER_VERSION', '0.3.1' );
define( 'RECRAWLER_SLUG', 'recrawler' );
define( 'RECRAWLER_PREFIX', 'recrawler' );
define( 'RECRAWLER_NAME', 'ReCrawler' );
define( 'RECRAWLER_FILE', __FILE__ );
define( 'RECRAWLER_DIR', __DIR__ );
define( 'RECRAWLER_BASENAME', plugin_basename( __FILE__ ) );
define( 'RECRAWLER_URL', plugin_dir_url( __FILE__ ) );

if ( file_exists( __DIR__ . '/vendor-prefixed/autoload.php' ) ) {
	require_once __DIR__ . '/vendor-prefixed/autoload.php';
	( new Main( new Container() ) )->init();
}
