Update MDTlLoader and MDAllowedValueSets

phpcs-errors:226 phpunit-status:successful phpstan-errors:209
This commit is contained in:
2020-10-29 20:45:59 +01:00
committed by Stefan Rohde-Enslin
parent 36b8fec24b
commit a8f73a4b86
8 changed files with 97 additions and 71 deletions

28
inc/constants.php Normal file
View File

@ -0,0 +1,28 @@
<?PHP
/**
* This file collects global constants to the code of the frontend.
*
* @file
*
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
*/
declare(strict_types = 1);
const TL_FILE_DIRS = [
__DIR__ . "/../l10n/musdb/",
__DIR__ . "/../classes/MDAllowedValueSets/l18n/",
];
const AUTOLOAD_DIRS = [
__DIR__ . "/../classes/MDTlLoader/src",
__DIR__ . "/../classes/MD_STD",
__DIR__ . "/../classes/MDAllowedValueSets/src",
__DIR__ . "/../classes/MDExportFormats/src",
__DIR__ . "/../classes/MDErrorReporter",
__DIR__ . "/../classes/MDMailer/src",
__DIR__ . "/../conf",
__DIR__ . "/../classes/MDErrorReporter/exceptions/generic",
__DIR__ . "/../classes/MDErrorReporter/exceptions/page",
__DIR__ . "/../classes/MDErrorReporter/exceptions/updates",
__DIR__ . "/../classes/MDTlLoader/exceptions",
];