-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathautoload.php
More file actions
26 lines (22 loc) · 765 Bytes
/
Copy pathautoload.php
File metadata and controls
26 lines (22 loc) · 765 Bytes
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
<?php
/*
* This file is part of the Behind-Project (https://github.com/glady/Behind).
*
* (c) Mike Gladysch <mail@mike-gladysch.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
require_once __DIR__ . "/src/glady/Behind/ClassLoader/ClassLoader.php";
use glady\Behind\ClassLoader\ClassLoader;
$classLoader = new ClassLoader();
$namespaces = array(
'glady' => __DIR__ . '/src/glady'
);
$classLoader->addNamespaceClassLoaderRule(null, $namespaces);
$classLoader->register();
// Debugging class loading example:
//$classLoader->on('all', function($me, $event, $state) {
// echo "\n $event - " . json_encode($state);
//});
\glady\Behind::setClassLoader($classLoader);