api.emotionhero.com/bootstrap.php

11 lines
426 B
PHP
Raw Normal View History

2016-09-01 12:15:17 +02:00
<?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';