api/playlists and image resizing + delivery
[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         include_once $file;
9     }
10
11     public static function register()
12     {
13         set_include_path(
14             get_include_path()
15             . PATH_SEPARATOR
16             . __DIR__ . '/../'
17         );
18
19         spl_autoload_register('imagestore\Autoloader::load');
20     }
21 }
22 ?>