2013-11-05 12:18:30 +01:00
|
|
|
<?php
|
2015-08-06 22:22:11 +02:00
|
|
|
// --- Define path to application directory
|
2013-11-05 12:18:30 +01:00
|
|
|
defined('APPLICATION_PATH')
|
2015-08-06 22:22:11 +02:00
|
|
|
|| define('APPLICATION_PATH', realpath(__DIR__ . '/../application'));
|
2013-11-05 12:18:30 +01:00
|
|
|
|
2015-08-06 22:22:11 +02:00
|
|
|
// --- Define application environment
|
2013-11-05 12:18:30 +01:00
|
|
|
defined('APPLICATION_ENV')
|
|
|
|
|| define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
|
|
|
|
|
2015-09-18 11:53:21 +02:00
|
|
|
// --- Composer autoload
|
2015-09-18 12:06:15 +02:00
|
|
|
require_once realpath(__DIR__ . '/../vendor/autoload.php');
|
2015-09-18 11:53:21 +02:00
|
|
|
|
2015-08-06 22:22:11 +02:00
|
|
|
if (APPLICATION_ENV == 'development'){
|
|
|
|
ini_set("soap.wsdl_cache_enabled", "0");
|
|
|
|
}
|
|
|
|
|
|
|
|
// --- Create application, bootstrap, and run
|
|
|
|
$application = new Zend_Application(APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini');
|
2013-11-05 12:18:30 +01:00
|
|
|
$application->bootstrap()->run();
|