1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-12 08:04:05 +02:00

feat(core): Added ability to override default constants

This commit is contained in:
Awilum
2022-06-24 22:02:44 +03:00
parent 17c494bfc1
commit da223475e0
4 changed files with 57 additions and 24 deletions

View File

@@ -15,22 +15,16 @@
namespace Flextype;
/**
* Define the Flextype start time in current unix timestamp (microseconds).
*/
define('START_TIME', microtime(true));
/**
* Define the PATH to the root directory (without trailing slash).
*/
define('ROOT_DIR', str_replace(DIRECTORY_SEPARATOR, '/', getcwd()));
/**
* Define the project name.
*/
define('PROJECT_NAME', 'project');
/**
* Define the PATH (without trailing slash).
*/
define('PATH_PROJECT', ROOT_DIR . '/' . PROJECT_NAME);
define('PATH_TMP', ROOT_DIR . '/var/tmp');
/**
* Ensure vendor libraries exist
*/