Skip to content

Commit daa5190

Browse files
committed
Add resetFormatsAfterRequest issue test
1 parent 4024007 commit daa5190

18 files changed

+2476
-271
lines changed

.env

+6
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,9 @@ DATABASE_URL=sqlite:///%kernel.project_dir%/var/test.db3
1414
###> symfony/mailer ###
1515
MAILER_DSN=null://null
1616
###< symfony/mailer ###
17+
18+
###> lexik/jwt-authentication-bundle ###
19+
JWT_SECRET_KEY=%kernel.project_dir%/config/jwt/private.pem
20+
JWT_PUBLIC_KEY=%kernel.project_dir%/config/jwt/public.pem
21+
JWT_PASSPHRASE=b406fa29adfd637669a87d0d0e0032139731110641fcf3ac692c3fde392a9566
22+
###< lexik/jwt-authentication-bundle ###

.github/workflows/symfony.yml

+3
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,8 @@ jobs:
5555
- name: Load Doctrine fixtures
5656
run: php bin/console doctrine:fixtures:load --quiet
5757

58+
- name: Generate JWT keypair
59+
run: php bin/console lexik:jwt:generate-keypair
60+
5861
- name: Run functional tests
5962
run: vendor/bin/codecept run Functional

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,7 @@ yarn-error.log
3434
/phpunit.xml
3535
.phpunit.result.cache
3636
###< phpunit/phpunit ###
37+
38+
###> lexik/jwt-authentication-bundle ###
39+
/config/jwt/*.pem
40+
###< lexik/jwt-authentication-bundle ###

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@ Lastly, if you just want to see the module in action and run the tests yourself
2424
```shell
2525
composer update
2626
```
27-
3. Update database schema and load Doctrine fixtures
27+
3. Update database schema, load Doctrine fixtures and generate JWT keypair
2828
```shell
2929
php bin/console doctrine:schema:update --force
3030

3131
php bin/console doctrine:fixtures:load --quiet
32+
33+
php bin/console lexik:jwt:generate-keypair
3234
```
3335

3436
Then, go to the project directory and run:

composer.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
"php": ">=8.1.0",
1515
"ext-ctype": "*",
1616
"ext-iconv": "*",
17+
"api-platform/symfony": "^4.0",
1718
"doctrine/doctrine-bundle": "^2.11",
19+
"lexik/jwt-authentication-bundle": "^3.1",
1820
"symfony/apache-pack": "^1.0",
1921
"symfony/console": "6.4.*",
2022
"symfony/dotenv": "6.4.*",
@@ -34,6 +36,7 @@
3436
"codeception/module-asserts": "^3.0",
3537
"codeception/module-doctrine": "^3.1",
3638
"codeception/module-phpbrowser": "^3.0",
39+
"codeception/module-rest": "^3.4",
3740
"codeception/module-symfony": "^3.2 | *@dev",
3841
"doctrine/doctrine-fixtures-bundle": "^3.5",
3942
"friendsofphp/php-cs-fixer": "^3.46",
@@ -61,7 +64,7 @@
6164
},
6265
"sort-packages": true,
6366
"platform": {
64-
"php": "8.1.0"
67+
"php": "8.2.0"
6568
}
6669
},
6770
"autoload": {
@@ -102,7 +105,8 @@
102105
],
103106
"post-create-project-cmd": [
104107
"@php bin/console doctrine:schema:update --force",
105-
"@php bin/console doctrine:fixtures:load --quiet"
108+
"@php bin/console doctrine:fixtures:load --quiet",
109+
"@php bin/console lexik:jwt:generate-keypair"
106110
]
107111
},
108112
"conflict": {

0 commit comments

Comments
 (0)