Added bootstrap.php for Autoloader and Debugger.

This commit is contained in:
Markus Birth 2022-02-12 04:41:04 +01:00
parent a81734cdc3
commit 4bee231cc6
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A
4 changed files with 14 additions and 10 deletions

View File

@ -2,6 +2,7 @@
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved. See LICENSE file for licensing details
require_once __DIR__ . '/lib/bootstrap.php';
// We need to set this to return a 200 since we use .htaccess ErrorDocument
// rules to handle archives.

11
lib/bootstrap.php Normal file
View File

@ -0,0 +1,11 @@
<?php
// Serendipity
// See LICENSE file for license information.
require_once __DIR__ . '/../vendor/autoload.php';
// TODO: REMOVE WHEN DONE DEVELOPING
$whoops = new \Whoops\Run();
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler());
$whoops->register();

View File

@ -2,6 +2,8 @@
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved. See LICENSE file for licensing details
require_once __DIR__ . '/lib/bootstrap.php';
define('IN_installer', true);
define('IN_upgrader', true);
define('IN_serendipity', true);

View File

@ -241,16 +241,6 @@ if (function_exists('get_include_path')) {
$old_include = @ini_get('include_path');
}
require_once("vendor/autoload.php");
if ($serendipity['production'] !== true) {
$whoops = new \Whoops\Run;
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
$whoops->register();
}
$new_include = ($serendipity['use_PEAR'] ? $old_include . PATH_SEPARATOR : '')
. S9Y_INCLUDE_PATH . 'bundled-libs/' . PATH_SEPARATOR
. $serendipity['serendipityPath'] . PATH_SEPARATOR