1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-22 21:22:40 +00:00
Arsse/bootstrap.php

21 lines
521 B
PHP
Raw Normal View History

2016-09-27 13:00:02 +00:00
<?php
declare(strict_types=1);
namespace JKingWeb\NewsSync;
const BASE = __DIR__.DIRECTORY_SEPARATOR;
const NS_BASE = __NAMESPACE__."\\";
2016-09-27 13:00:02 +00:00
2016-10-02 21:07:17 +00:00
if(!defined(NS_BASE."INSTALL")) define(NS_BASE."INSTALL", false);
2016-09-27 13:00:02 +00:00
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;
}
});
2016-10-17 20:49:39 +00:00
ignore_user_abort(true);
2016-10-02 21:07:17 +00:00
$data = new RuntimeData(new Conf());