summaryrefslogtreecommitdiff
path: root/core/config/init.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/config/init.php')
-rw-r--r--core/config/init.php17
1 files changed, 5 insertions, 12 deletions
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());