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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user