1 | <?php |
||
11 | class AutoloadUtil |
||
12 | { |
||
13 | /** |
||
14 | * The decoupled autoload function for actually loading the classes |
||
15 | * |
||
16 | * @param $class |
||
17 | * @param bool $throwException |
||
18 | * |
||
19 | * @return bool |
||
20 | * @throws \Exception |
||
21 | */ |
||
22 | public static function autoLoad($class, $throwException = true) |
||
37 | |||
38 | private static function handleUnloadableClass($class, $throwException, $rootPath, $file) |
||
47 | |||
48 | |||
49 | /** |
||
50 | * @param $class |
||
51 | * @param $throwException |
||
52 | * @param $file |
||
53 | * |
||
54 | * @return bool |
||
55 | * @throws \Exception |
||
56 | */ |
||
57 | private static function loadClassInExistingFile($class, $throwException, $file) |
||
70 | |||
71 | /** |
||
72 | * @param $class |
||
73 | * @param $throwException |
||
74 | * @param $rootPath |
||
75 | * @param $file |
||
76 | * @param $debug_backtrace |
||
77 | * |
||
78 | * @return bool |
||
79 | */ |
||
80 | private static function handleUnloadableClassWithBacktrace($class, $throwException, $rootPath, $file, $debug_backtrace) |
||
88 | |||
89 | /** |
||
90 | * @param $class |
||
91 | * @param $throwException |
||
92 | * @param $file |
||
93 | * |
||
94 | * @return bool |
||
95 | * @throws \Exception |
||
96 | */ |
||
97 | private static function handleUnloadableClassWithoutBacktrace($class, $throwException, $file) |
||
105 | } |