forked from mautic/mautic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
32 lines (25 loc) · 928 Bytes
/
index.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
26
27
28
29
30
31
32
<?php
/*
* @copyright 2014 Mautic Contributors. All rights reserved
* @author Mautic
*
* @link http://mautic.org
*
* @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');
use Mautic\Middleware\MiddlewareBuilder;
use Symfony\Component\ClassLoader\ApcClassLoader;
$loader = require_once __DIR__.'/app/autoload.php';
/**
* Use APC for autoloading to improve performance. Change 'sf2' to a unique prefix
* in order to prevent cache key conflicts with other applications also using APC.
*/
//$apcLoader = new ApcClassLoader('sf2', $loader);
//$loader->unregister();
//$apcLoader->register(true);
$kernel = new AppKernel('prod', false);
$kernel->loadClassCache();
Stack\run((new MiddlewareBuilder('prod'))->resolve($kernel));