-
Notifications
You must be signed in to change notification settings - Fork 0
/
Loader.php
40 lines (33 loc) · 948 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
<?php
namespace PressForward;
use SplClassLoader as JaxionClassLoader;
class Loader
{
public function __construct()
{
$this->includes();
$this->namespace_to();
}
public function test()
{
echo 'This thing';
// var_dump(__METHOD__);
}
public 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();
}
public function namespace_to()
{
}
}
// new Loader;