This repository has been archived on 2018-10-11. You can view files and clone it, but cannot push or open issues or pull requests.
sleepy/index.php

27 lines
556 B
PHP
Raw Permalink Normal View History

2014-05-07 14:05:13 -04:00
<?php
/**
* Sleepy - a REST framework
*
*
* A PHP Rest Framework valuing convention over configuration,
* but aiming to be as flexible as possible
*
* @author Timothy J. Warren
* @package Sleepy
*/
2014-05-14 11:36:38 -04:00
namespace Sleepy;
2014-05-07 14:05:13 -04:00
2014-05-14 10:32:31 -04:00
define('BASEPATH', __DIR__ . '/');
define('SLEEPY_DIR', 'Sleepy');
define('APP_DIR', 'application');
2014-05-07 14:05:13 -04:00
define('APPPATH', __DIR__ . '/application/');
2014-05-14 11:36:38 -04:00
// Autoloaders
include BASEPATH . 'vendor/autoload.php';
2014-05-14 10:32:31 -04:00
require BASEPATH . SLEEPY_DIR . '/autoload.php';
2014-05-14 11:36:38 -04:00
// And...bootstrap
require APPPATH . 'bootstrap.php';
2014-05-14 10:32:31 -04:00
2014-05-07 14:05:13 -04:00
// End of index.php