forked from PressForward/pressforward
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLoader.php
41 lines (28 loc) · 818 Bytes
/
Loader.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?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;