api.emotionhero.com/bootstrap.php

11 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';