Commit 79579fc9 authored by Tino Goratsch's avatar Tino Goratsch

clean up - removed some obsolete constants

parent a2be9e60
......@@ -64,7 +64,6 @@ class Application extends AbstractApplication
define('ACP3_DIR', ACP3_ROOT_DIR . 'ACP3/');
define('CLASSES_DIR', ACP3_DIR . 'Core/');
define('MODULES_DIR', ACP3_DIR . 'Modules/');
define('LIBRARIES_DIR', ACP3_ROOT_DIR . 'libraries/');
define('UPLOADS_DIR', ACP3_ROOT_DIR . 'uploads/');
define('CACHE_DIR', ACP3_ROOT_DIR . 'cache/' . $this->environment . '/');
}
......
......@@ -5,7 +5,7 @@ namespace ACP3\Core\Enum;
* Class Environment
* @package ACP3\Core\Enum
*/
final class Environment
class Environment
{
const PRODUCTION = 'prod';
const DEVELOPMENT = 'dev';
......
......@@ -21,7 +21,6 @@ class ACP3
{
$currentCwd = getcwd();
if (!self::$authenticated) {
define('IN_ACP3', true);
if (!defined('ACP3_ROOT_DIR')) {
define('ACP3_ROOT_DIR', realpath(__DIR__ . '/../../../../../../../') . '/');
}
......
......@@ -5,7 +5,6 @@
* @author Tino Goratsch
*/
define('IN_ACP3', true);
define('ACP3_ROOT_DIR', realpath(__DIR__) . '/');
require './vendor/autoload.php';
......
......@@ -5,7 +5,6 @@
* @author Tino Goratsch
*/
define('IN_ACP3', true);
define('ACP3_ROOT_DIR', realpath(__DIR__) . '/');
require './vendor/autoload.php';
......
......@@ -40,7 +40,6 @@ class Application extends Core\AbstractApplication
define('ACP3_DIR', ACP3_ROOT_DIR . 'ACP3/');
define('CLASSES_DIR', ACP3_DIR . 'Core/');
define('MODULES_DIR', ACP3_DIR . 'Modules/');
define('LIBRARIES_DIR', ACP3_ROOT_DIR . 'libraries/');
define('UPLOADS_DIR', ACP3_ROOT_DIR . 'uploads/');
define('CACHE_DIR', ACP3_ROOT_DIR . 'cache/');
......
......@@ -5,7 +5,6 @@
* @author Tino Goratsch
*/
define('IN_ACP3', true);
define('ACP3_ROOT_DIR', realpath(__DIR__ . '/../') . '/');
require '../vendor/autoload.php';
......
......@@ -5,7 +5,6 @@
* @author Tino Goratsch
*/
define('IN_ACP3', true);
define('ACP3_ROOT_DIR', realpath(__DIR__ . '/../') . '/');
require '../vendor/autoload.php';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment