Rename dynamic.php and DynamicConfig.php

This commit is contained in:
gevorgmansuryan 2024-12-26 03:45:10 +04:00
parent 712a2cebba
commit 1f49cbfccb
7 changed files with 35 additions and 35 deletions

View File

@ -1,4 +1,4 @@
/dynamic.php
/databaseCredentials.php
/common.php
/console.php
/security.json

View File

@ -192,7 +192,7 @@ $config = [
'params' => [
'installed' => false,
'databaseDefaultStorageEngine' => 'InnoDB',
'dynamicConfigFile' => '@config/dynamic.php',
'databaseCredFile' => '@config/databaseCredentials.php',
'moduleAutoloadPaths' => ['@app/modules', '@humhub/modules'],
'availableLanguages' => [
'en-US' => 'English (US)',

View File

@ -88,7 +88,7 @@ class DynamicConfig extends BaseObject
public static function getConfigFilePath()
{
return Yii::getAlias(Yii::$app->params['dynamicConfigFile']);
return Yii::getAlias(Yii::$app->params['databaseCredFile']);
}
public static function exist()

View File

@ -580,7 +580,7 @@ class SelfTest
}
// Check Dynamic Config is Writable
$title = Yii::t('AdminModule.information', 'Permissions') . ' - ' . Yii::t('AdminModule.information', 'Dynamic Config');
$path = Yii::getAlias(Yii::$app->params['dynamicConfigFile']);
$path = Yii::getAlias(Yii::$app->params['databaseCredFile']);
if (!is_file($path)) {
$path = dirname($path);
}

View File

@ -14,7 +14,7 @@ $testConfig = [
],
],
'params' => [
'dynamicConfigFile' => '@humhub/tests/codeception/config/dynamic.php',
'databaseCredFile' => '@humhub/tests/codeception/config/databaseCredentials.php',
'installed' => true,
'settings' => [
'core' => [

View File

@ -0,0 +1,30 @@
<?php
return [
'name' => 'HumHub',
'language' => 'en-US',
'timeZone' => 'Europe/Berlin',
'components' =>
[
'formatter' =>
[
'defaultTimeZone' => 'Europe/Berlin',
],
'user' =>
[
],
'mailer' =>
[
'useFileTransport' => true,
],
'cache' =>
[
'class' => 'yii\\caching\\DummyCache',
'keyPrefix' => 'humhub',
],
],
'params' =>
[
'config_created_at' => 1509135303,
],
];

View File

@ -1,30 +0,0 @@
<?php
return [
'name' => 'HumHub',
'language' => 'en-US',
'timeZone' => 'Europe/Berlin',
'components' =>
[
'formatter' =>
[
'defaultTimeZone' => 'Europe/Berlin',
],
'user' =>
[
],
'mailer' =>
[
'useFileTransport' => true,
],
'cache' =>
[
'class' => 'yii\\caching\\DummyCache',
'keyPrefix' => 'humhub',
],
],
'params' =>
[
'config_created_at' => 1509135303,
],
];