1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
<?php
declare(strict_types=1);
define("TFISH_CONTENT_MODULE_PATH", TFISH_TRUST_PATH . 'modules/content/');
define("TFISH_CONTENT_MODULE_FORM_PATH", TFISH_CONTENT_MODULE_PATH . 'form/');
define("TFISH_CONTENT_MODULE_LANGUAGE_PATH", TFISH_CONTENT_MODULE_PATH . 'language/');
include TFISH_CONTENT_MODULE_LANGUAGE_PATH . 'english.php';
function tfContentModuleAutoload(string $classname) {
if (is_file(TFISH_CONTENT_MODULE_PATH . 'class/' . $classname . '.php')) {
include TFISH_CONTENT_MODULE_PATH . 'class/' . $classname . '.php';
}
}
spl_autoload_register('tfContentModuleAutoload');
$contentHandlerFactory = new TfContentHandlerFactory($tfValidator, $tfDatabase,
$tfCriteriaFactory, $tfFileHandler);