mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 09:22:33 +00:00
Remove some complex log options
This commit is contained in:
@@ -51,26 +51,26 @@ $mysql_ssl_verify = envNonEmpty('MYSQL_SSL_VERIFY_SERVER_CERT', null);
|
|||||||
|
|
||||||
$mySqlSSLOptions = [];
|
$mySqlSSLOptions = [];
|
||||||
$useSSL = envNonEmpty('MYSQL_USE_SSL', false);
|
$useSSL = envNonEmpty('MYSQL_USE_SSL', false);
|
||||||
if (false !== $useSSL && null !== $useSSL) {
|
//if (false !== $useSSL && null !== $useSSL && '' !== $useSSL) {
|
||||||
if (null !== $mysql_ssl_ca_dir) {
|
// if (null !== $mysql_ssl_ca_dir) {
|
||||||
$mySqlSSLOptions[PDO::MYSQL_ATTR_SSL_CAPATH] = $mysql_ssl_ca_dir;
|
// $mySqlSSLOptions[PDO::MYSQL_ATTR_SSL_CAPATH] = $mysql_ssl_ca_dir;
|
||||||
}
|
// }
|
||||||
if (null !== $mysql_ssl_ca_file) {
|
// if (null !== $mysql_ssl_ca_file) {
|
||||||
$mySqlSSLOptions[PDO::MYSQL_ATTR_SSL_CA] = $mysql_ssl_ca_file;
|
// $mySqlSSLOptions[PDO::MYSQL_ATTR_SSL_CA] = $mysql_ssl_ca_file;
|
||||||
}
|
// }
|
||||||
if (null !== $mysql_ssl_cert) {
|
// if (null !== $mysql_ssl_cert) {
|
||||||
$mySqlSSLOptions[PDO::MYSQL_ATTR_SSL_CERT] = $mysql_ssl_cert;
|
// $mySqlSSLOptions[PDO::MYSQL_ATTR_SSL_CERT] = $mysql_ssl_cert;
|
||||||
}
|
// }
|
||||||
if (null !== $mysql_ssl_key) {
|
// if (null !== $mysql_ssl_key) {
|
||||||
$mySqlSSLOptions[PDO::MYSQL_ATTR_SSL_KEY] = $mysql_ssl_key;
|
// $mySqlSSLOptions[PDO::MYSQL_ATTR_SSL_KEY] = $mysql_ssl_key;
|
||||||
}
|
// }
|
||||||
if (null !== $mysql_ssl_ciphers) {
|
// if (null !== $mysql_ssl_ciphers) {
|
||||||
$mySqlSSLOptions[PDO::MYSQL_ATTR_SSL_CIPHER] = $mysql_ssl_ciphers;
|
// $mySqlSSLOptions[PDO::MYSQL_ATTR_SSL_CIPHER] = $mysql_ssl_ciphers;
|
||||||
}
|
// }
|
||||||
if (null !== $mysql_ssl_verify) {
|
// if (null !== $mysql_ssl_verify) {
|
||||||
$mySqlSSLOptions[PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT] = $mysql_ssl_verify;
|
// $mySqlSSLOptions[PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT] = $mysql_ssl_verify;
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'default' => envNonEmpty('DB_CONNECTION', 'mysql'),
|
'default' => envNonEmpty('DB_CONNECTION', 'mysql'),
|
||||||
@@ -138,7 +138,7 @@ return [
|
|||||||
'client' => env('REDIS_CLIENT', 'predis'),
|
'client' => env('REDIS_CLIENT', 'predis'),
|
||||||
'options' => [
|
'options' => [
|
||||||
'cluster' => env('REDIS_CLUSTER', 'predis'),
|
'cluster' => env('REDIS_CLUSTER', 'predis'),
|
||||||
'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_') . '_database_'),
|
//'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_') . '_database_'),
|
||||||
],
|
],
|
||||||
'default' => [
|
'default' => [
|
||||||
'scheme' => envNonEmpty('REDIS_SCHEME', 'tcp'),
|
'scheme' => envNonEmpty('REDIS_SCHEME', 'tcp'),
|
||||||
|
@@ -28,7 +28,7 @@ use FireflyIII\Enums\UserRoleEnum;
|
|||||||
$result = [];
|
$result = [];
|
||||||
|
|
||||||
|
|
||||||
foreach (UserRoleEnum::cases() as $role) {
|
//foreach (UserRoleEnum::cases() as $role) {
|
||||||
$result[$role->value] = [];
|
// $result[$role->value] = [];
|
||||||
}
|
//}
|
||||||
return $result;
|
return $result;
|
||||||
|
23
phpunit.xml
23
phpunit.xml
@@ -1,23 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!--
|
|
||||||
~ phpunit.xml
|
|
||||||
~ Copyright (c) 2020 james@firefly-iii.org
|
|
||||||
~
|
|
||||||
~ This file is part of Firefly III (https://github.com/firefly-iii).
|
|
||||||
~
|
|
||||||
~ This program is free software: you can redistribute it and/or modify
|
|
||||||
~ it under the terms of the GNU Affero General Public License as
|
|
||||||
~ published by the Free Software Foundation, either version 3 of the
|
|
||||||
~ License, or (at your option) any later version.
|
|
||||||
~
|
|
||||||
~ This program is distributed in the hope that it will be useful,
|
|
||||||
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
~ GNU Affero General Public License for more details.
|
|
||||||
~
|
|
||||||
~ You should have received a copy of the GNU Affero General Public License
|
|
||||||
~ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
-->
|
|
||||||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.2/phpunit.xsd"
|
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.2/phpunit.xsd"
|
||||||
backupGlobals="false"
|
backupGlobals="false"
|
||||||
@@ -33,10 +14,6 @@
|
|||||||
stopOnFailure="true">
|
stopOnFailure="true">
|
||||||
<php>
|
<php>
|
||||||
<env name="APP_ENV" value="testing"/>
|
<env name="APP_ENV" value="testing"/>
|
||||||
<env name="DB_HOST" value="127.0.0.1"/>
|
|
||||||
<env name="CACHE_DRIVER" value="array"/>
|
|
||||||
<env name="SESSION_DRIVER" value="array"/>
|
|
||||||
<env name="QUEUE_DRIVER" value="sync"/>
|
|
||||||
<ini name="xdebug.mode" value="coverage"/>
|
<ini name="xdebug.mode" value="coverage"/>
|
||||||
</php>
|
</php>
|
||||||
<testsuites>
|
<testsuites>
|
||||||
|
Reference in New Issue
Block a user