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

21 lines
410 B
PHP
Raw Permalink Normal View History

<?php
if (!function_exists('aeidn_plugin_autoload')) {
2018-01-12 09:30:22 +02:00
function aeidn_plugin_autoload($class)
{
$prefix = 'Dnolbon\\';
$baseDir = __DIR__ . '/src/';
2018-01-12 09:30:22 +02:00
if (strpos($class, $prefix) === false) {
return;
}
2018-01-12 09:30:22 +02:00
$file = $baseDir . str_replace('\\', '/', $class) . '.php';
2018-01-12 09:30:22 +02:00
if (file_exists($file)) {
require_once $file;
}
2018-01-12 09:30:22 +02:00
}
}
spl_autoload_register('aeidn_plugin_autoload');