コード例 #1
0
ファイル: setup.php プロジェクト: titon/app
 * 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
 * --------------------------------------------------------------
 *
 * Define the primary configurations used within the application.
 * These values can be conveniently accessed via methods on
 * the Config class -- Config::salt().
 */
Config::set('app', ['name' => 'Titon', 'salt' => 'AN3sk8ANjsSl1Hwx910APs7lq8nmsP5LQmKC', 'encoding' => 'UTF-8']);
/**
 * --------------------------------------------------------------
 *  Resource Mapping
 * --------------------------------------------------------------
 *