index/index.php
flashwave 285e2de40c Removed local PSR-4 autoloader implementation.
I've fully moved to Composer and its autoloader is more optimised than this one could ever hope to be.
2024-07-31 19:12:24 +00:00

19 lines
534 B
PHP

<?php
// index.php
// Created: 2021-04-26
// Updated: 2023-07-21
namespace Index;
define('NDX_ROOT', __DIR__);
define('NDX_DIR_SRC', NDX_ROOT . DIRECTORY_SEPARATOR . 'src');
// currently phpstan sucks and relies on error suppression, luckily it leaves a constant!
if(!defined('__PHPSTAN_RUNNING__')) {
// defining this WILL cause issues, never do it unless you HAVE to
if(!defined('NDX_LEAVE_ERRORS'))
Exceptions::convertErrors();
if(!defined('NDX_LEAVE_EXCEPTIONS'))
Exceptions::handleExceptions();
}