Skip to content

Commit

Permalink
=
Browse files Browse the repository at this point in the history
  • Loading branch information
Arikaim committed Jul 25, 2024
1 parent 9cc7f4f commit d385f0c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Arikaim.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,13 @@ public static function systemInit(bool $showErrors = false, bool $console = fals
// Init constants
(\defined('ROOT_PATH') == false) ? \define('ROOT_PATH',Self::getRootPath($console)) : null;
\define('DOMAIN',Self::$scheme . '://' . ($config['environment']['host'] ?? Self::resolveHost($_SERVER)));
\define('BASE_PATH',$config['environment']['basePath'] ?? Self::resolveBasePath($_SERVER, DOMAIN) );

if ($console == false) {
\define('BASE_PATH',$config['environment']['basePath'] ?? Self::resolveBasePath($_SERVER, DOMAIN));
} else {
\define('BASE_PATH','');
}

\define('APP_PATH',ROOT_PATH . BASE_PATH . DIRECTORY_SEPARATOR . 'arikaim');
\define('APP_URL',DOMAIN . BASE_PATH . '/arikaim');
\define('CORE_NAMESPACE','Arikaim\\Core');
Expand Down

0 comments on commit d385f0c

Please sign in to comment.