Composer.json add lib/ folder, fix Smart extended class

Smarty extended class is now included in checks and is fixed.

Add the lib/ folder to the composer.json autoloader block so we can use
the composer autoloader and not the one from CoreLibs

Added an autoloader load test backend file
This commit is contained in:
Clemens Schwaighofer
2021-10-28 10:10:15 +09:00
parent 0907325a38
commit edfbe476c4
11 changed files with 586 additions and 17 deletions

View File

@@ -301,9 +301,15 @@ if (defined('DEBUG') && DEBUG == false) {
}
/************* AUTO LOADER *******************/
// read auto loader
require BASE . LIB . 'autoloader.php';
// composer auto loader
require BASE . 'venoder' . DS . 'autoloader.php';
// read auto loader for lib only
// require BASE . LIB . 'autoloader.php';
// composer auto loader, IF composer.json file includes classmap for lib/:
// "autoload": {
// "classmap": [
// "lib/"
// ]
// },
// NOTE BASE: __DIR__ . DIRECTORY_SEPARATOR . '..' DIRECTORY_SEPARATOR;
require BASE . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
// __END__