Skip to content

Commit 571345a

Browse files
author
dmitriy
committed
refactoring
1 parent ad86706 commit 571345a

File tree

118 files changed

+1883
-1714
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+1883
-1714
lines changed

.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,5 @@ CORS_ALLOW_ORIGIN=^https?://localhost(:[0-9]+)?$
5050

5151
# how many days health history will be stored in the db
5252
DATABASE_HEALTH_HISTORY_DAYS=7
53+
54+
REQUEST_LOG_SENSITIVE_PROPERTIES='["password", "token", "authorization", "cookie"]'

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ fixtures:
134134
@make exec cmd="php bin/console doctrine:fixtures:load --env=test"
135135

136136
phpunit:
137-
@make exec cmd="./vendor/bin/phpunit -c phpunit.xml.dist --coverage-html reports/coverage --coverage-clover reports/clover.xml --log-junit reports/junit.xml"
137+
@make exec-bash cmd="rm -rf ./var/cache/test* && bin/console cache:warmup --env=test && ./vendor/bin/phpunit -c phpunit.xml.dist --coverage-html reports/coverage --coverage-clover reports/clover.xml --log-junit reports/junit.xml"
138138

139139
###> php-coveralls ###
140140
report-code-coverage: ## update code coverage on coveralls.io. Note: COVERALLS_REPO_TOKEN should be set on CI side.

composer.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,15 @@
3636
"ext-pdo": "*",
3737
"ext-pdo_mysql": "*",
3838
"doctrine/doctrine-migrations-bundle": "^2.1",
39+
"easycorp/easy-log-handler": "1.0.*",
3940
"jmose/command-scheduler-bundle": "^2.0",
4041
"lexik/jwt-authentication-bundle": "^2.6",
4142
"mark-gerarts/automapper-plus-bundle": "^1.2",
4243
"matthiasnoback/symfony-console-form": "^3.6",
4344
"nelmio/api-doc-bundle": "^3.5",
4445
"nelmio/cors-bundle": "^2.0",
4546
"piwik/device-detector": "^3.12",
46-
"ramsey/uuid-doctrine": "^1.5",
47+
"ramsey/uuid-doctrine": "^1.6",
4748
"sensio/framework-extra-bundle": "^5.5",
4849
"sensiolabs/security-checker": "^6.0",
4950
"antishov/doctrine-extensions-bundle": "^1.4",
@@ -78,8 +79,7 @@
7879
"roave/security-advisories": "dev-master",
7980
"symfony/debug-pack": "*",
8081
"symfony/maker-bundle": "^1.14",
81-
"symfony/profiler-pack": "*",
82-
"symfony/test-pack": "*"
82+
"symfony/profiler-pack": "*"
8383
},
8484
"config": {
8585
"platform": {
@@ -97,7 +97,11 @@
9797
},
9898
"autoload-dev": {
9999
"psr-4": {
100-
"App\\Tests\\": "tests/"
100+
"App\\Tests\\": "tests/",
101+
"PHPUnit\\": "tools/01_phpunit/vendor/phpunit/phpunit/src/",
102+
"PHPUnit\\Framework\\MockObject\\": "tools/01_phpunit/vendor/phpunit/phpunit/src/Framework/MockObject/ForwardCompatibility",
103+
"Symfony\\Component\\BrowserKit\\": "tools/01_phpunit/vendor/symfony/browser-kit",
104+
"Symfony\\Bridge\\PhpUnit\\": "tools/01_phpunit/vendor/symfony/phpunit-bridge"
101105
}
102106
},
103107
"replace": {
@@ -112,6 +116,7 @@
112116
"scripts": {
113117
"auto-scripts": {
114118
"cache:clear": "symfony-cmd",
119+
"cache:warmup": "symfony-cmd",
115120
"assets:install %PUBLIC_DIR%": "symfony-cmd",
116121
"security-checker security:check": "script"
117122
},

0 commit comments

Comments
 (0)