X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fincludes.php;h=45d08bade71b1c18fc2e919e24fd7fc317193162;hp=3f7135cabd7e56ea1009914d3ed51e2f2e69b667;hb=7e46f248cc9eb9a3cd540b2e864e053f40a46bcd;hpb=0cd57c3885f00ad77fc599e53ed2f2d5e7ac267f diff --git a/inc/includes.php b/inc/includes.php index 3f7135ca..45d08bad 100644 --- a/inc/includes.php +++ b/inc/includes.php @@ -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? */