MonarcAppFO/public/index.php

25 lines
646 B
PHP
Raw Normal View History

2016-04-12 14:39:18 +02:00
<?php
/**
* This makes our life easier when dealing with paths. Everything is relative
* to the application root now.
*/
chdir(dirname(__DIR__));
// Decline static file requests back to the PHP built-in webserver
if (php_sapi_name() === 'cli-server' && is_file(__DIR__ . parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH))) {
return false;
}
2016-04-20 14:26:50 +02:00
/**
* Default Timezone
*/
2016-06-02 15:12:27 +02:00
if(date_default_timezone_get() != ini_get('date.timezone')){
date_default_timezone_set('Europe/Luxembourg');
}
2016-04-20 14:26:50 +02:00
2016-04-12 14:39:18 +02:00
// Setup autoloading
require 'init_autoloader.php';
// Run the application!
Zend\Mvc\Application::init(require 'config/application.config.php')->run();