From 21fedb3af692b12c1f0aa266bbf788b01f2cbe4c Mon Sep 17 00:00:00 2001 From: George Halkiadakis Date: Sun, 26 Mar 2023 04:50:46 +0300 Subject: auth tests --- core/config/init.php | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'core/config/init.php') diff --git a/core/config/init.php b/core/config/init.php index b035faf..2db2503 100644 --- a/core/config/init.php +++ b/core/config/init.php @@ -16,19 +16,16 @@ * anything else can be injected on-demand */ -// Load authorization parametres -// ----------------------------------------------------------------------------- -require_once CREDENTIALS; - // setup error-handliing // ----------------------------------------------------------------------------- require_once '../core/helpers/error_handling.php'; -// Load rendering sub-system -// ----------------------------------------------------------------------------- -require_once RENDERING_SYSTEM; +// depricated: +/// // Load rendering sub-system +/// // ----------------------------------------------------------------------------- +/// require_once RENDERING_SYSTEM; // Setup Application Engiine @@ -43,16 +40,12 @@ Registry::vow('database', function() { return new Database(); }); // Attach Cache to the Resitry as a vow // (CACHE_DRIVER) acts as driver-wrapper +// --- -- -- - - - Registry::vow('cache', function() { return new (CACHE_DRIVER)(); }); // CHECK: if strict mode has any benefits: // Registry::vow('cache', function():Cache_interface { return new (CACHE_DRIVER)(); }); -// Start session -Registry::set('session', new DefaultSession()); - - - // Initialize THE REQUEST // ----------------------------------------------------------------------------- Registry::set('REQUEST', new Request()); -- cgit v1.2.3