https://github.com/PressForward/pressforward
Raw File
Tip revision: e2eb7e5be500bae21216bfc296fb0004eb685b31 authored by dependabot[bot] on 12 May 2021, 00:59:54 UTC
Bump merge from 1.2.0 to 1.2.1 in /assets/stats-app
Tip revision: e2eb7e5
Loader.php
<?php

namespace PressForward;

use SplClassLoader as JaxionClassLoader;

class Loader {

	function __construct() {

		$this->includes();
		$this->namespace_to();

	}

	function test() {
		echo 'This thing';
		// var_dump(__METHOD__);
	}

	function includes() {
		// var_dump(__METHOD__);
		// var_dump( glob(dirname(__FILE__)."/Libraries/jaxion/src/*/*/*.php"));
		// foreach ( glob( dirname(__FILE__)."/Libraries/jaxion/src/*.php") as $filename ){
			// var_dump($filename);
			// include $filename;
		// }
		// die();
		$classLoader = new JaxionClassLoader( 'Intraxia\Jaxion', dirname( __FILE__ ) . '/Libraries/Jaxion/src' );
		$classLoader->filterFinalPath( 'Intraxia' . DIRECTORY_SEPARATOR . 'Jaxion' . DIRECTORY_SEPARATOR, '' );
		$classLoader->register();

	}

	function namespace_to() {

	}

}

// new Loader;
back to top