1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-07-21 00:31:20 +02:00
Files
php-cimage/old/autoload.php
2017-03-03 20:38:35 +01:00

24 lines
415 B
PHP

<?php
/**
* Autoloader for CImage and related class files.
*
*/
require_once __DIR__ . "/defines.php";
require_once __DIR__ . "/functions.php";
/**
* Autoloader for classes.
*
* @param string $class the fully-qualified class name.
*
* @return void
*/
spl_autoload_register(function ($class) {
$path = __DIR__ . "/src/CImage/{$class}.php";
if (is_file($path)) {
require($path);
}
});