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

feat(tests): new constants PATH_PROJECT and PATH_TMP instead of old c…

This commit is contained in:
Awilum
2022-06-09 20:16:47 +03:00
parent 028966521c
commit daaa3ee1ef

View File

@@ -5,10 +5,8 @@ declare(strict_types=1);
namespace Flextype;
define('ROOT_DIR', str_replace(DIRECTORY_SEPARATOR, '/', getcwd()));
define('PATH', [
'project' => ROOT_DIR . '/project',
'tmp' => ROOT_DIR . '/var/tmp',
]);
define('PATH_PROJECT', ROOT_DIR . '/project');
define('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;