From b3f0088db82030e198a76892a18e3cad40b665c9 Mon Sep 17 00:00:00 2001 From: "Bruno O. Notario" Date: Fri, 30 Jul 2021 02:52:59 -0300 Subject: [PATCH] loader interface --- system/engine/autoload.php | 3 +- system/engine/interfaces/loader.php | 78 +++++++++++++++++++++++++++++ system/engine/loader.php | 5 +- 3 files changed, 83 insertions(+), 3 deletions(-) create mode 100644 system/engine/interfaces/loader.php diff --git a/system/engine/autoload.php b/system/engine/autoload.php index 7b825c4..9a80eed 100644 --- a/system/engine/autoload.php +++ b/system/engine/autoload.php @@ -52,7 +52,8 @@ spl_autoload_register(function ($class) { 'response', 'classes', 'abstracthelper', - 'interfaces\front' + 'interfaces\front', + 'interfaces\loader' ]; if($namespace[0] == "Phacil" && in_array($classNative, $allowed)){ diff --git a/system/engine/interfaces/loader.php b/system/engine/interfaces/loader.php new file mode 100644 index 0000000..37df8d7 --- /dev/null +++ b/system/engine/interfaces/loader.php @@ -0,0 +1,78 @@ +controller($control); }