mirror of
https://github.com/getformwork/formwork.git
synced 2025-01-17 13:38:22 +01:00
Use const
instead of define()
This commit is contained in:
parent
7eaf53a1a8
commit
9d0cd98df1
20
index.php
20
index.php
@ -3,16 +3,16 @@
|
||||
use Formwork\Core\Formwork;
|
||||
use Formwork\Admin\Statistics;
|
||||
|
||||
define('DS', DIRECTORY_SEPARATOR);
|
||||
define('ROOT_PATH', __DIR__ . DS);
|
||||
define('FORMWORK_PATH', ROOT_PATH . 'formwork' . DS);
|
||||
define('CONFIG_PATH', ROOT_PATH . 'config' . DS);
|
||||
define('ADMIN_PATH', ROOT_PATH . 'admin' . DS);
|
||||
define('ACCOUNTS_PATH', ADMIN_PATH . 'accounts' . DS);
|
||||
define('SCHEMES_PATH', ADMIN_PATH . 'schemes' . DS);
|
||||
define('TRANSLATIONS_PATH', ADMIN_PATH . 'translations' . DS);
|
||||
define('LOGS_PATH', ADMIN_PATH . 'logs' . DS);
|
||||
define('VIEWS_PATH', ADMIN_PATH . 'views' . DS);
|
||||
const DS = DIRECTORY_SEPARATOR;
|
||||
const ROOT_PATH = __DIR__ . DS;
|
||||
const FORMWORK_PATH = ROOT_PATH . 'formwork' . DS;
|
||||
const CONFIG_PATH = ROOT_PATH . 'config' . DS;
|
||||
const ADMIN_PATH = ROOT_PATH . 'admin' . DS;
|
||||
const ACCOUNTS_PATH = ADMIN_PATH . 'accounts' . DS;
|
||||
const SCHEMES_PATH = ADMIN_PATH . 'schemes' . DS;
|
||||
const TRANSLATIONS_PATH = ADMIN_PATH . 'translations' . DS;
|
||||
const LOGS_PATH = ADMIN_PATH . 'logs' . DS;
|
||||
const VIEWS_PATH = ADMIN_PATH . 'views' . DS;
|
||||
|
||||
require ROOT_PATH . 'vendor' . DS . 'autoload.php';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user