git.cweiske.de
/
ouya-imagestore.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add LICENSE file
[ouya-imagestore.git]
/
src
/
imagestore
/
Autoloader.php
1
<?php
2
namespace imagestore;
3
class Autoloader
4
{
5
public static function load($class)
6
{
7
$file = str_replace(array('_', '\\'), '/', $class) . '.php';
8
if (stream_resolve_include_path($file)) {
9
include_once $file;
10
}
11
}
12
13
public static function register()
14
{
15
set_include_path(
16
get_include_path()
17
. PATH_SEPARATOR
18
. __DIR__ . '/../'
19
);
20
21
spl_autoload_register('imagestore\Autoloader::load');
22
}
23
}
24
?>