This repository has been archived on 2024-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
affiliateimporteral/autoload.php
2018-01-12 14:30:22 +07:00

21 lines
410 B
PHP

<?php
if (!function_exists('aeidn_plugin_autoload')) {
function aeidn_plugin_autoload($class)
{
$prefix = 'Dnolbon\\';
$baseDir = __DIR__ . '/src/';
if (strpos($class, $prefix) === false) {
return;
}
$file = $baseDir . str_replace('\\', '/', $class) . '.php';
if (file_exists($file)) {
require_once $file;
}
}
}
spl_autoload_register('aeidn_plugin_autoload');