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

feat(core): use FLEXTYPE_ prefix for all core constants

This commit is contained in:
Awilum
2022-07-04 11:43:03 +03:00
parent e812177050
commit ab72bf19c8
66 changed files with 163 additions and 163 deletions

View File

@@ -9,19 +9,19 @@ define('ROOT_DIR', str_replace(DIRECTORY_SEPARATOR, '/', getcwd()));
/**
* Define the project name.
*/
define('PROJECT_NAME', 'project');
define('FLEXTYPE_PROJECT_NAME', 'project');
/**
* Define the PATH (without trailing slash).
*/
define('PATH_PROJECT', ROOT_DIR . '/' . PROJECT_NAME);
define('PATH_TMP', ROOT_DIR . '/var/tmp');
define('FLEXTYPE_PATH_PROJECT', ROOT_DIR . '/' . FLEXTYPE_PROJECT_NAME);
define('FLEXTYPE_PATH_TMP', ROOT_DIR . '/var/tmp');
! is_file($flextype_autoload = ROOT_DIR . '/vendor/autoload.php') and exit('Please run: <i>composer install</i> for flextype');
$flextype_loader = require_once $flextype_autoload;
filesystem()->directory(PATH_TMP)->exists() and filesystem()->directory(PATH_TMP)->delete();
filesystem()->directory(FLEXTYPE_PATH_TMP)->exists() and filesystem()->directory(FLEXTYPE_PATH_TMP)->delete();
filesystem()->directory(ROOT_DIR . '/project/config/flextype/')->ensureExists(0755, true);
filesystem()->file(ROOT_DIR . '/tests/fixtures/settings/settings.yaml')->copy(ROOT_DIR . '/project/config/flextype/settings.yaml');