<?php
/**
 * Core functionality for the Postomatic plugin.
 *
 * This file contains the core class that initializes and runs the plugin.
 *
 * @package Postomatic
 * @subpackage Core
 */

namespace Postomatic\Core;

/**
 * Core class that handles the main plugin functionality.
 *
 * @since   1.0.0
 */
class Core {

	/**
	 * Run plugin core functionality.
	 *
	 * @return void
	 */
	public function run() {
		// Add any global hooks or initialization processes.
		add_action( 'plugins_loaded', array( $this, 'initialize_plugin' ) );
	}

	/**
	 * Plugin initialization method.
	 *
	 * @return void
	 */
	public function initialize_plugin() {
		try {
			$plugin = new \Postomatic\Postomatic();
			$plugin->run();
		} catch ( \Exception $e ) {
			return;
		}
	}
}
