Changeset 652 for trunk/system/core/Kohana.php
- Timestamp:
- 10/04/2007 08:10:40 PM (14 months ago)
- Files:
-
- 1 modified
-
trunk/system/core/Kohana.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/core/Kohana.php
r651 r652 132 132 set_exception_handler(array('Kohana', 'exception_handler')); 133 133 134 // Set shutdown handler to run the 'system.shutdown' event135 register_shutdown_function(array('Event', 'run'), 'system.shutdown');136 137 134 if (function_exists('date_default_timezone_set')) 138 135 { … … 170 167 } 171 168 169 // Enable routing 170 Event::add('system.routing', array('Router', 'setup')); 171 172 // Enabel loading a Kohana instance 173 Event::add('system.execute', array('Kohana', 'instance')); 174 172 175 // Enable log writing if the log threshold is enabled 173 176 if(Config::item('log.threshold') > 0) … … 176 179 } 177 180 178 // Enable routing 179 Event::add('system.routing', array('Router', 'setup')); 180 181 // Enabel loading a Kohana instance 182 Event::add('system.execute', array('Kohana', 'instance')); 181 Event::add('system.shutdown', array('Kohana', 'display')); 183 182 184 183 // Setup is complete
