Improve bootstrap.php.
This commit is contained in:
parent
4785f07f12
commit
d18224e34d
@ -3,7 +3,16 @@
|
|||||||
// 幸運な偶然 - Lucky Coinkydink
|
// 幸運な偶然 - Lucky Coinkydink
|
||||||
// See LICENSE file for license information.
|
// See LICENSE file for license information.
|
||||||
|
|
||||||
require_once __DIR__ . '/../vendor/autoload.php';
|
namespace LuckyCoin;
|
||||||
|
|
||||||
|
// Ensure vendor libraries exist
|
||||||
|
$autoload = __DIR__ . '/../vendor/autoload.php';
|
||||||
|
if (!is_file($autoload)) {
|
||||||
|
die('Please run: <i>./composer.phar install</i>');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Register the auto-loader.
|
||||||
|
$loader = require $autoload;
|
||||||
|
|
||||||
// TODO: REMOVE WHEN DONE DEVELOPING
|
// TODO: REMOVE WHEN DONE DEVELOPING
|
||||||
$whoops_handler = new \Whoops\Handler\PrettyPageHandler();
|
$whoops_handler = new \Whoops\Handler\PrettyPageHandler();
|
||||||
@ -14,3 +23,11 @@ $whoops_handler->addDataTableCallback('$serendipity', function () {
|
|||||||
$whoops = new \Whoops\Run();
|
$whoops = new \Whoops\Run();
|
||||||
$whoops->pushHandler($whoops_handler);
|
$whoops->pushHandler($whoops_handler);
|
||||||
$whoops->register();
|
$whoops->register();
|
||||||
|
|
||||||
|
// Set timezone to default, falls back to system if php.ini not set
|
||||||
|
date_default_timezone_set(@date_default_timezone_get());
|
||||||
|
|
||||||
|
// Set internal encoding.
|
||||||
|
@ini_set('default_charset', 'UTF-8');
|
||||||
|
mb_language('uni');
|
||||||
|
mb_internal_encoding('UTF-8');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user