Update bootstrap/autoload and constants (change and remove non-used constants definitions)

This commit is contained in:
DariusIII
2018-03-12 09:26:35 +01:00
parent d1e69a9a89
commit e28b1746e3
4 changed files with 73 additions and 69 deletions
+2 -6
View File
@@ -1,8 +1,8 @@
<?php
require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'vendor'.DIRECTORY_SEPARATOR.'autoload.php';
require_once 'constants.php';
require __DIR__.DIRECTORY_SEPARATOR.'app.php';
require_once 'constants.php';
use Dotenv\Dotenv;
use Blacklight\utility\Utility;
@@ -12,11 +12,7 @@ $dotenv->load();
define('NNTMUX_START', microtime(true));
define('NN_APP_PATH', dirname(__DIR__).DS.'app');
if (! defined('NN_ROOT')) {
define('NN_ROOT', dirname(NN_APP_PATH, 2));
}
define('NN_APP_PATH', app_path());
if (! defined('HAS_WHICH')) {
define('HAS_WHICH', Utility::hasWhich() ? true : false);