hathor-cpp-scanner/app/core/bootstrap.php

31 lines
629 B
PHP
Raw Normal View History

2016-06-13 08:27:43 -07:00
<?php
/*
* @file bootstrap.php
* @description Load defaults
*
*/
define('HATHOR_NO_RESULTS', 1363);
define('HATHOR_PARTIAL', 1364);
require __DIR__ . '/../3rdparty/autoload.php';
require __DIR__ . '/config.php';
require __DIR__ . '/api/Hathor.php';
$app = new \Slim\Slim(array(
'debug' => true,
'mode' => 'development',
'log.writer' => new Hathor\Log,
'log.enabled' => true,
'log.level' => \Slim\Log::DEBUG,
));
$app->add(new \Hathor\DefaultHeaders());
require __DIR__ . '/routes.php';
$app->setName('hwt-thr');
$app->container->singleton('format', function () {
return new \Hathor\Format();
});