Skip to content

Commit 003fa67

Browse files
committed
Merge remote-tracking branch 'origin/chore(c)/github-actions-update' into chore(c)/github-actions-update
2 parents 7ea3ed0 + fa9b4bd commit 003fa67

File tree

23 files changed

+178
-208
lines changed

23 files changed

+178
-208
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"gedmo/doctrine-extensions": "3.13.0",
3434
"lexik/jwt-authentication-bundle": "2.19.1",
3535
"mark-gerarts/automapper-plus-bundle": "1.4.1",
36-
"matomo/device-detector": "6.1.5",
36+
"matomo/device-detector": "6.1.6",
3737
"matthiasnoback/symfony-console-form": "5.3.2",
3838
"nelmio/api-doc-bundle": "4.12.0",
3939
"nelmio/cors-bundle": "2.3.1",

composer.lock

Lines changed: 21 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/packages/doctrine.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@ doctrine:
1212
EnumLanguage: App\Doctrine\DBAL\Types\EnumLanguageType
1313
EnumLocale: App\Doctrine\DBAL\Types\EnumLocaleType
1414
EnumLogLogin: App\Doctrine\DBAL\Types\EnumLogLoginType
15-
15+
profiling_collect_backtrace: '%kernel.debug%'
1616
# IMPORTANT: You MUST configure your server version,
1717
# either here or in the DATABASE_URL env var (see .env file)
1818
#server_version: '15'
19-
2019
orm:
2120
auto_generate_proxy_classes: true
2221
enable_lazy_ghost_objects: true
22+
report_fields_where_declared: true
23+
validate_xml_mapping: true
2324
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
2425
auto_mapping: true
2526
mappings:

config/packages/translation.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ framework:
1111
# dsn: '%env(LOCO_DSN)%'
1212
# lokalise:
1313
# dsn: '%env(LOKALISE_DSN)%'
14+
# phrase:
15+
# dsn: '%env(PHRASE_DSN)%'

doc/XDEBUG.md

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ have all basic configuration ready.
1515
* [PhpStorm basic configuration](#phpstorm-basic-configuration-table-of-contents)
1616
* [First connection](#first-connection-table-of-contents)
1717
* [Configuring debugging server](#configuring-debugging-server-table-of-contents)
18-
* [Mac users](#mac-users-table-of-contents)
1918
* [Debug CLI commands](#debug-cli-commands-table-of-contents)
2019
* [Debug Postman requests](#debug-postman-requests-table-of-contents)
2120
* [External links / resources](#external-links--resources-table-of-contents)
@@ -27,9 +26,6 @@ These instructions relies heavily to screenshots, so you might need to use
2726
your own brains for some parts of these instructions - but I bet you can get
2827
this working in couple of minutes.
2928

30-
Note that if you're using Mac, read [Mac users](#mac-users-table-of-contents)
31-
section first.
32-
3329
### PhpStorm basic configuration [](#table-of-contents)
3430

3531
1) Make sure that Xdebug port is `9003`
@@ -71,25 +67,6 @@ local paths. See the image below:
7167

7268
![Path mappings](images/xdebug_05.png)
7369

74-
## Mac users [](#table-of-contents)
75-
76-
Mac users need to create a `docker-compose.override.yml` file with following
77-
content:
78-
79-
```yaml
80-
version: '3'
81-
services:
82-
php:
83-
environment:
84-
- DOCKER_WITH_MAC=1
85-
```
86-
87-
And if you're reading this you might want to read [Speed problems with docker-compose?](SPEED_UP_DOCKER_COMPOSE.md)
88-
document, which will tell you how to speed your Mac environment quite lot.
89-
90-
You just need to combine those both configurations to your local
91-
`docker-compose.override.yml` file
92-
9370
## Debug CLI commands [](#table-of-contents)
9471

9572
By default this application assumes that you're using `app.localhost` as your

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ services:
1919
- /app/var/:uid=$HOST_UID,gid=$HOST_GID
2020
environment:
2121
PHP_IDE_CONFIG: "serverName=app.localhost"
22+
extra_hosts:
23+
- "host.docker.internal:host-gateway"
2224

2325
nginx:
2426
container_name: symfony-backend-nginx

docker-entrypoint-dev.sh

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,8 @@ set -e
44
#
55
# If we're starting web-server we need to do following:
66
# 0) Basic linting of current JSON configuration file
7-
# 1) Determine docker container IP address, so that we can use it within
8-
# XDebug configuration. Copy php.ini file to correct location and modify
9-
# it to contain correct remote host value. With this we don't need to
10-
# build container each time we want to change something in php.ini file.
11-
# Also we want to export host IP so that we can use that within
12-
# `check.php` to check that current environment is compatible with Symfony
7+
# 1) Copy updated php configuration file, with this we can change php
8+
# configuration without rebuilding image
139
# 2) Install all dependencies
1410
# 3) Generate JWT encryption keys
1511
# 4) Create database if it not exists yet
@@ -21,16 +17,7 @@ set -e
2117
make lint-configuration
2218

2319
# Step 1
24-
if [[ -z "${DOCKER_WITH_MAC}" ]]; then
25-
# Not Mac, so determine actual docker container IP address
26-
HOST=$(/sbin/ip route|awk '/default/ { print $3 }')
27-
else
28-
# Otherwise use special value, which works with Mac
29-
HOST="docker.for.mac.localhost"
30-
fi
31-
3220
cp /app/docker/php/php-dev.ini /usr/local/etc/php/php.ini
33-
sed -i "s/xdebug\.client_host \=.*/xdebug\.client_host\ = $HOST/g" /usr/local/etc/php/php.ini
3421

3522
DOCKER_IP=$(/sbin/ip route|awk '/default/ { print $3 }')
3623

docker/php/php-dev.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ apc.serializer=igbinary
3030
; Xdebug settings
3131
xdebug.mode = coverage,debug
3232
xdebug.start_with_request = yes
33-
xdebug.client_host = 127.0.0.1
33+
xdebug.client_host = host.docker.internal

symfony.lock

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@
3737
"version": "v0.5.3"
3838
},
3939
"doctrine/doctrine-bundle": {
40-
"version": "2.8",
40+
"version": "2.10",
4141
"recipe": {
4242
"repo": "github.com/symfony/recipes",
4343
"branch": "main",
44-
"version": "2.8",
45-
"ref": "6b43b7b6ff6bf2551f2933ebeb66721fa3db8fbc"
44+
"version": "2.10",
45+
"ref": "e025a6cb69b195970543820b2f18ad21724473fa"
4646
},
4747
"files": [
4848
"config/packages/doctrine.yaml",
@@ -438,12 +438,12 @@
438438
"version": "v5.1.0"
439439
},
440440
"symfony/translation": {
441-
"version": "5.3",
441+
"version": "6.3",
442442
"recipe": {
443443
"repo": "github.com/symfony/recipes",
444-
"branch": "master",
445-
"version": "5.3",
446-
"ref": "da64f5a2b6d96f5dc24914517c0350a5f91dee43"
444+
"branch": "main",
445+
"version": "6.3",
446+
"ref": "64fe617084223633e1dedf9112935d8c95410d3e"
447447
},
448448
"files": [
449449
"config/packages/translation.yaml",
@@ -457,12 +457,12 @@
457457
"version": "v4.4.3"
458458
},
459459
"symfony/twig-bundle": {
460-
"version": "6.1",
460+
"version": "6.3",
461461
"recipe": {
462462
"repo": "github.com/symfony/recipes",
463463
"branch": "main",
464-
"version": "5.4",
465-
"ref": "bb2178c57eee79e6be0b297aa96fc0c0def81387"
464+
"version": "6.3",
465+
"ref": "b7772eb20e92f3fb4d4fe756e7505b4ba2ca1a2c"
466466
},
467467
"files": [
468468
"config/packages/twig.yaml",

tools/01_phpunit/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"require-dev": {
88
"liuggio/fastest": "1.11.0",
9-
"phpunit/php-code-coverage": "10.1.6",
9+
"phpunit/php-code-coverage": "10.1.7",
1010
"phpunit/phpcov": "9.0.2",
1111
"phpunit/phpunit": "10.0.19",
1212
"roave/security-advisories": "dev-latest",

0 commit comments

Comments
 (0)