From fe054077ae40963e4c5ede7064c50554788aeb64 Mon Sep 17 00:00:00 2001 From: "Bruno O. Notario" Date: Wed, 6 Apr 2022 20:29:41 -0300 Subject: [PATCH] Composer vendor autoload --- system/engine/autoload.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/system/engine/autoload.php b/system/engine/autoload.php index cbbf3d2..c1f5ea7 100644 --- a/system/engine/autoload.php +++ b/system/engine/autoload.php @@ -179,8 +179,17 @@ spl_autoload_register(function ($class) { } } + + return; }); -require_once(DIR_SYSTEM . 'engine/action.php'); \ No newline at end of file +require_once(DIR_SYSTEM . 'engine/action.php'); + +$composer = defined('DIR_VENDOR') ? DIR_VENDOR : DIR_SYSTEM . 'vendor/autoload.php'; + +if (file_exists($composer)) { + $autoloadComposer = (include_once $composer); + //return; +} \ No newline at end of file