mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-22 13:12:41 +00:00
19 lines
No EOL
495 B
PHP
19 lines
No EOL
495 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
namespace JKingWeb\NewsSync;
|
|
|
|
const BASE = __DIR__.DIRECTORY_SEPARATOR;
|
|
const NS_BASE = __NAMESPACE__."\\";
|
|
|
|
if(!defined(NS_BASE."INSTALL")) define(NS_BASE."INSTALL", false);
|
|
|
|
spl_autoload_register(function ($class) {
|
|
if($class=="SimplePie") return;
|
|
$file = str_replace("\\", DIRECTORY_SEPARATOR, $class);
|
|
$file = BASE."vendor".DIRECTORY_SEPARATOR.$file.".php";
|
|
if (file_exists($file)) {
|
|
require_once $file;
|
|
}
|
|
});
|
|
|
|
$data = new RuntimeData(new Conf()); |