Autoloader updates, read env to class, DB IO update
Move autolaoder loading from config.master.php to config.php and before we read config.master.php The read env function has moved into a class and is launched after the auto loader has been loaded DB IO class update with better error reporting with last error set and error history of all errors in order. TODO: per query or per action error grouping
This commit is contained in:
@@ -303,8 +303,11 @@ if (defined('DEBUG') && DEBUG == false) {
|
||||
}
|
||||
|
||||
/************* AUTO LOADER *******************/
|
||||
// **DEPRECATED** MOVED TO config.php
|
||||
// read auto loader for lib only
|
||||
// require BASE . LIB . 'autoloader.php';
|
||||
// if (is_file(BASE . LIB . 'autoloader.php')) {
|
||||
// require BASE . LIB . 'autoloader.php';
|
||||
// }
|
||||
// composer auto loader, IF composer.json file includes classmap for lib/:
|
||||
// "autoload": {
|
||||
// "classmap": [
|
||||
@@ -313,6 +316,8 @@ if (defined('DEBUG') && DEBUG == false) {
|
||||
// },
|
||||
// NOTE: MUST RUN composer dump-autoload if file/class names are changed or added
|
||||
// NOTE BASE: __DIR__ . DIRECTORY_SEPARATOR . '..' DIRECTORY_SEPARATOR;
|
||||
require BASE . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
|
||||
// if (is_file(BASE . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php')) {
|
||||
// require BASE . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
|
||||
// }
|
||||
|
||||
// __END__
|
||||
|
||||
Reference in New Issue
Block a user