api.emotionhero.com/bootstrap.php
2016-09-01 11:15:17 +01:00

10 lines
426 B
PHP

<?php
// if APPLICATION_ENV is not defined (ie. through htaccess).. assume dev version is ran trough php cli-server
// rest is production
defined('APPLICATION_ENV')
|| define('APPLICATION_ENV',
(getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV')
: (php_sapi_name() === 'cli-server' ? 'development' : "production")));
require_once __DIR__.'/vendor/autoload.php';