mirror of
https://github.com/mosbth/cimage.git
synced 2025-07-22 09:11:22 +02:00
merged with master
This commit is contained in:
23
old/autoload.php
Normal file
23
old/autoload.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?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);
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user