Use const instead of define()

This commit is contained in:
Giuseppe Criscione 2019-10-05 00:48:40 +02:00
parent 7eaf53a1a8
commit 9d0cd98df1

View File

@ -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';