-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index_dev.php
25 lines (18 loc) · 698 Bytes
/
index_dev.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
/*
* @copyright 2014 Mautic, NP
* @author Mautic
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
define('MAUTIC_ROOT_DIR', __DIR__);
// Fix for hosts that do not have date.timezone set, it will be reset based on users settings
date_default_timezone_set('UTC');
require_once __DIR__.'/vendor/autoload.php';
use Mautic\CoreBundle\ErrorHandler\ErrorHandler;
use Mautic\Middleware\MiddlewareBuilder;
use function Stack\run;
if (extension_loaded('apcu') && in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1', '172.17.0.1'])) {
@apcu_clear_cache();
}
ErrorHandler::register('dev');
run((new MiddlewareBuilder(new AppKernel('dev', true)))->resolve());