1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-06 13:16:45 +02:00

feat(console): use new constants naming

This commit is contained in:
Awilum
2022-06-17 12:36:43 +03:00
parent dfa008ad75
commit c3f0482a36

View File

@@ -20,13 +20,16 @@ namespace Flextype;
*/
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',
'tmp' => ROOT_DIR . '/var/tmp',
]);
define('PATH_PROJECT', ROOT_DIR . '/' . PROJECT_NAME);
define('PATH_TMP', ROOT_DIR . '/var/tmp');
/**
* Ensure vendor libraries exist