* * The setup file is called first in the bootstrap stack. * All settings and initialization that are required by other * classes and components should be defined in this file. */ date_default_timezone_set('UTC'); /** * -------------------------------------------------------------- * Debugging * -------------------------------------------------------------- * * Enable the debugger to handle errors and exceptions. * A logger can be defined to log all exceptions. */ Debugger::initialize(); Debugger::setLogger(new Logger(TEMP_DIR . '/logs')); /** * -------------------------------------------------------------- * Error Handling * -------------------------------------------------------------- * * A custom error handler can be defined that can output error * pages for uncaught exceptions. By default, the Application * object handles errors by initializing an ErrorController * and rendering a template with the View. */ Debugger::setHandler([$app, 'handleError']); /** * -------------------------------------------------------------- * Configuration * --------------------------------------------------------------