require_once() is inperformant, replace with require()
[core.git] / inc / includes.php
index 3f7135cabd7e56ea1009914d3ed51e2f2e69b667..45d08bade71b1c18fc2e919e24fd7fc317193162 100644 (file)
@@ -29,6 +29,9 @@ require(FrameworkConfiguration::getInstance()->readConfig('base_path') . 'inc/lo
 // Load matching config
 ClassLoader::getInstance()->loadExtraConfigs();
 
+// Register hooks here
+require(FrameworkConfiguration::getInstance()->readConfig('base_path') . 'inc/hooks.php');
+
 // Does the user has an application specified?
 if (!empty($_GET['app'])) {
        // Set the application from string
@@ -58,9 +61,6 @@ $application = preg_replace('/([^a-z0-9_-])+/i', '', $application);
 // Set the application name for later usage
 FrameworkConfiguration::getInstance()->setConfigEntry('app_name', $application);
 
-// Register auto-load function with the SPL
-spl_autoload_register('ClassLoader::autoLoad');
-
 /**
  * Is the devel package included?
  */