https://github.com/PressForward/pressforward
Revision ce83222a81bedcad4336d9ae344ef065076d58db authored by Boone B Gorges on 16 May 2023, 20:52:23 UTC, committed by Boone B Gorges on 16 May 2023, 20:52:23 UTC
1 parent 600aac7
Raw File
Tip revision: ce83222a81bedcad4336d9ae344ef065076d58db authored by Boone B Gorges on 16 May 2023, 20:52:23 UTC
Tested up to WP 6.2.
Tip revision: ce83222
Loader.php
<?php
/**
 * Plugin loader.
 *
 * @package PressForward
 */

namespace PressForward;

use SplClassLoader as JaxionClassLoader;

/**
 * Loader class.
 */
class Loader {

	/**
	 * Constructor.
	 */
	public function __construct() {
		$this->includes();
		$this->namespace_to();
	}

	/**
	 * Not used.
	 */
	public function test() {
		echo 'This thing';
	}

	/**
	 * Sets up class loader for Jaxion.
	 */
	public function includes() {
		$class_loader = new JaxionClassLoader( 'Intraxia\Jaxion', __DIR__ . '/Libraries/Jaxion/src' );
		$class_loader->filterFinalPath( 'Intraxia' . DIRECTORY_SEPARATOR . 'Jaxion' . DIRECTORY_SEPARATOR, '' );
		$class_loader->register();
	}

	/**
	 * Not used.
	 */
	public function namespace_to() {}
}
back to top