-
-
Notifications
You must be signed in to change notification settings - Fork 527
/
Copy pathindex.php
31 lines (29 loc) · 924 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
<?php
/*
* This file is part of MODX Revolution.
*
* Copyright (c) MODX, LLC. All Rights Reserved.
*
* For complete copyright and license information, see the COPYRIGHT and LICENSE
* files found in the top-level directory of this distribution.
*/
/**
* Instantiates the setup program.
*
* @package modx
* @subpackage setup
*/
if (ini_get('opcache.enable')) {
ini_set('opcache.enable', false);
}
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'provisioner' . DIRECTORY_SEPARATOR . 'bootstrap.php';
$modInstall = new modInstall();
if ($modInstall->getService('lexicon','modInstallLexicon')) {
$modInstall->lexicon->load('default');
}
//$modInstall->findCore();
$modInstall->doPreloadChecks();
$requestClass = MODX_SETUP_INTERFACE_IS_CLI ? 'request.modInstallCLIRequest' : 'request.modInstallRequest';
$modInstall->getService('request',$requestClass);
echo $modInstall->request->handle();
exit();