Compare commits

...

7 Commits

Author SHA1 Message Date
Ruslan Baidan d71edc1556 Merge remote-tracking branch 'origin/master' into feature/remove-db-abstract
* origin/master:
  Added the PROJECT_ROOT definition and usage in the core lib patch.
  Updated the backoffice dependency with the 2FA fix.
  Updated the backoffice dependency with added the missing space in the sql.
  Updated the backoffice dependency with the password reset when clients' 1st user's email is changed.
  Updated the backoffice dependency with the reset 2FA feature.
  Updated the Core dependency with the fix of typcasting.
2023-10-18 16:30:25 +02:00
Ruslan Baidan 3d99019bfc Added the PROJECT_ROOT definition and usage in the core lib patch. 2023-10-18 16:29:47 +02:00
Ruslan Baidan 5d92aa8aa5 Updated the backoffice dependency with the 2FA fix. 2023-08-08 12:55:27 +02:00
Ruslan Baidan 2aa121d41b Updated the backoffice dependency with added the missing space in the sql. 2023-06-22 14:19:18 +02:00
Ruslan Baidan 561e6793e1 Updated the backoffice dependency with the password reset when clients' 1st user's email is changed. 2023-06-22 14:07:19 +02:00
Ruslan Baidan 4aacfe4ccf Updated the backoffice dependency with the reset 2FA feature. 2023-06-20 17:00:17 +02:00
Ruslan Baidan 93b847191e Updated the Core dependency with the fix of typcasting. 2023-06-14 13:40:15 +02:00
2 changed files with 662 additions and 627 deletions

1271
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -6,17 +6,23 @@
* @see https://github.com/zendframework/ZFTool
*/
$env = getenv('APP_ENV') ?: 'production';
$appConfDir = getenv('APP_CONF_DIR') ?: '';
$appConfDir = getenv('APP_CONF_DIR') ?: null;
$confPaths = ['config/autoload/{,*.}{global,local}.php'];
defined('PROJECT_ROOT') or define('PROJECT_ROOT', __DIR__ . '/../');
if ($env !== 'testing') {
$confPaths = ['config/autoload/{,*.}{global,local}.php'];
}
$dataPath = 'data';
if (!empty($appConfDir)) {
$confPaths[] = $appConfDir . '/local.php';
$dataPath = $appConfDir . '/data';
if (!is_dir($dataPath . '/cache')
&& !mkdir($concurrentDirectory = $dataPath . '/cache') && !is_dir($concurrentDirectory)
) {
throw new RuntimeException(sprintf('Directory "%s" was not created', $concurrentDirectory));
if (!is_dir($dataPath . '/cache')) {
if (is_dir(PROJECT_ROOT . 'data/cache')) {
$dataPath = PROJECT_ROOT . 'data';
} elseif (!mkdir($concurrentDirectory = $dataPath . '/cache') && !is_dir($concurrentDirectory)) {
throw new \RuntimeException(sprintf('Directory "%s" was not created', $concurrentDirectory));
}
}
}