Skip to content

Commit 055d6b2

Browse files
committed
Merge remote-tracking branch 'upstream/main' into mongodb
2 parents 49ffa82 + 5058252 commit 055d6b2

File tree

104 files changed

+1373
-1173
lines changed

Some content is hidden

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

104 files changed

+1373
-1173
lines changed

.devcontainer/devcontainer.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,18 @@
33
"features": {
44
"ghcr.io/shyim/devcontainers-features/symfony-cli:0": {},
55
"ghcr.io/shyim/devcontainers-features/php:0": {
6-
"version": "8.2"
7-
},
6+
"version": "8.4"
7+
}
88
},
99
"updateContentCommand": {
10-
"composer install": ["composer", "install"],
11-
"importmap:install": ["symfony", "console", "importmap:install"]
10+
"composer install": ["composer", "install"]
1211
},
1312
"postAttachCommand": {
1413
"server": "symfony server:start",
1514
"sass build": ["symfony", "console", "sass:build", "-w"]
15+
},
16+
"containerEnv": {
17+
"SYMFONY_TRUSTED_PROXIES": "127.0.0.1",
18+
"SYMFONY_TRUSTED_HEADERS": "x-forwarded-for,x-forwarded-host,x-forwarded-proto,x-forwarded-port"
1619
}
1720
}

.editorconfig

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,17 @@ root = true
33

44
; Unix-style newlines
55
[*]
6+
charset = utf-8
67
end_of_line = LF
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
710

8-
[*.php]
11+
[*.{php,html,twig}]
912
indent_style = space
1013
indent_size = 4
14+
15+
[*.md]
16+
max_line_length = 80
17+
18+
[COMMIT_EDITMSG]
19+
max_line_length = 0

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ MONGODB_DB=symfony_demo
2929

3030
###> symfony/mailer ###
3131
# MAILER_DSN=null://null
32-
###< symfony/mailer ###
32+
###< symfony/mailer ###

.env.dev

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Define your env variables for the development environment here

.env.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# define your env variables for the test env here
1+
# Define your env variables for the test environment here
22
KERNEL_CLASS='App\Kernel'
33
APP_SECRET='$ecretf0rt3st'
44
SYMFONY_DEPRECATIONS_HELPER=999999

.github/workflows/lint.yaml

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -44,23 +44,9 @@ jobs:
4444
php-version: ${{ matrix.php-version }}
4545
tools: composer:v2
4646

47-
- name: "Set composer cache directory"
48-
id: composer-cache
49-
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
50-
51-
- name: "Cache composer"
52-
uses: actions/cache@v4
53-
with:
54-
path: ${{ steps.composer-cache.outputs.dir }}
55-
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
56-
restore-keys: ${{ runner.os }}-composer-
57-
5847
- name: "Install dependencies"
59-
run: composer install --ansi --no-interaction --no-progress
60-
61-
- name: Install PHPUnit
6248
id: install
63-
run: vendor/bin/simple-phpunit install
49+
run: composer install --ansi --no-interaction --no-progress
6450

6551
- name: Lint YAML files
6652
if: always() && steps.install.outcome == 'success'
@@ -70,10 +56,14 @@ jobs:
7056
if: always() && steps.install.outcome == 'success'
7157
run: ./bin/console lint:twig templates --env=prod
7258

73-
- name: Lint XLIFF translations
59+
- name: Lint XLIFF translation files
7460
if: always() && steps.install.outcome == 'success'
7561
run: ./bin/console lint:xliff translations
7662

63+
- name: Lint translation contents
64+
if: always() && steps.install.outcome == 'success'
65+
run: ./bin/console lint:translations
66+
7767
- name: Lint Parameters and Services
7868
if: always() && steps.install.outcome == 'success'
7969
run: ./bin/console lint:container --no-debug
@@ -90,6 +80,25 @@ jobs:
9080
if: always() && steps.install.outcome == 'success'
9181
run: composer audit
9282

83+
static-analysis:
84+
name: PHPStan
85+
runs-on: ubuntu-latest
86+
87+
steps:
88+
- name: Checkout code
89+
uses: actions/checkout@v4
90+
91+
- name: Setup PHP
92+
uses: shivammathur/setup-php@v2
93+
with:
94+
coverage: none
95+
php-version: '8.3'
96+
97+
- name: Install dependencies
98+
run: composer install --ansi --no-interaction --no-progress
99+
100+
- name: Install PHPUnit
101+
run: vendor/bin/simple-phpunit install
102+
93103
- name: Run PHPStan
94-
if: always() && steps.install.outcome == 'success'
95-
run: ./vendor/bin/phpstan analyze
104+
run: vendor/bin/phpstan analyze --no-progress

.github/workflows/tests.yaml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010
fail-fast: true
1111
PHPUNIT_FLAGS: "-v"
1212
SYMFONY_PHPUNIT_DIR: "$HOME/symfony-bridge/.phpunit"
13-
SYMFONY_DEPRECATIONS_HELPER: 0
13+
SYMFONY_DEPRECATIONS_HELPER: 'max[indirect]=52'
1414

1515
permissions:
1616
contents: read
@@ -24,10 +24,9 @@ jobs:
2424
strategy:
2525
matrix:
2626
operating-system: ['ubuntu-latest']
27-
php-version: ['8.2', '8.3']
27+
php-version: ['8.2', '8.3', '8.4']
2828
include:
29-
# TODO: change this to 'macos-latest' on June 2024, when '14' will become 'latest'
30-
- operating-system: 'macos-14'
29+
- operating-system: 'macos-latest'
3130
php-version: '8.2'
3231
- operating-system: 'windows-latest'
3332
php-version: '8.2'
@@ -47,18 +46,6 @@ jobs:
4746
- name: "Add PHPUnit matcher"
4847
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
4948

50-
- name: "Set composer cache directory"
51-
id: composer-cache
52-
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
53-
shell: bash
54-
55-
- name: "Cache composer"
56-
uses: actions/cache@v4
57-
with:
58-
path: ${{ steps.composer-cache.outputs.dir }}
59-
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
60-
restore-keys: ${{ runner.os }}-composer-
61-
6249
- name: "Install dependencies"
6350
run: composer install --ansi --no-interaction --no-progress
6451

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,9 @@
2020

2121
###> symfony/asset-mapper ###
2222
/public/assets/
23-
/assets/vendor
23+
/assets/vendor/
2424
###< symfony/asset-mapper ###
25+
26+
###> phpstan/phpstan ###
27+
phpstan.neon
28+
###< phpstan/phpstan ###

.php-cs-fixer.dist.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
->exclude('public/bundles')
1717
->exclude('public/build')
1818
// exclude files generated by Symfony Flex recipes
19-
->notPath('bin/console')
2019
->notPath('public/index.php')
2120
->notPath('importmap.php')
2221
;

assets/app.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
// start the Stimulus application
2+
import './bootstrap.js';
13
import './styles/app.scss';
2-
import '@fortawesome/fontawesome-free/css/all.css';
3-
import '@fortawesome/fontawesome-free/css/v4-shims.css';
44
import 'highlight.js/styles/github-dark-dimmed.css';
55
import 'lato-font/css/lato-font.css';
66

@@ -18,7 +18,5 @@ import './js/highlight.js';
1818
// Creates links to the Symfony documentation
1919
import './js/doclinks.js';
2020

21-
// start the Stimulus application
22-
import './bootstrap.js';
23-
2421
import './js/flatpicker.js';
22+

0 commit comments

Comments
 (0)