Skip to content
This repository has been archived by the owner on Sep 23, 2022. It is now read-only.

json_login problem solve #71

Open
wants to merge 2,626 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2626 commits
Select commit Hold shift + click to select a range
9ad21f1
Merge pull request #2923 from pableu/self-salting
XWB Oct 3, 2019
1b7c859
Merge pull request #2925 from rubenrua/2.0.x
XWB Oct 3, 2019
1cb1efb
Merge pull request #2932 from oleg-andreyev/update-flash-listener
XWB Oct 3, 2019
658be34
Safe option on XML mapping was removed on doctrine/mongodb-odm 2.0
Yurujai Oct 16, 2019
6c255a0
update nl translation
bghosts Oct 16, 2019
a0a7a14
removed left-over from deleted docs
kevinpapst Oct 21, 2019
6b08a0b
Merge pull request #2936 from kevinpapst/patch-1
XWB Oct 24, 2019
1e932f6
Merge pull request #2935 from bghosts/fix/dutch-translations
XWB Oct 24, 2019
938cbc4
Changed suggested example encoder from bcrypt to auto
michaelmo5 Jan 1, 2020
427239d
Mark controllers final
XWB Jan 8, 2020
87dc838
Revert "Bump the default minimal password length to 8 characters"
XWB Jan 8, 2020
b127537
Test PHP 7.4
XWB Jan 8, 2020
e4a6f9f
Commands must return an integer
XWB Jan 8, 2020
6f32e85
Switch to short array syntax and run CS fixer
XWB Jan 8, 2020
44866f9
Merge pull request #2956 from XWB/command-return
XWB Jan 8, 2020
a274673
Merge pull request #2951 from XWB/controller-final
XWB Jan 8, 2020
3e41c84
Merge pull request #2958 from XWB/short-array-syntax
XWB Jan 8, 2020
a0dc0af
Merge pull request #2954 from XWB/password-length
XWB Jan 8, 2020
e65f975
Update changelog for 2.2 release (#2952)
XWB Jan 8, 2020
823944e
Fix PHP 5.5 test
XWB Jan 8, 2020
c7c5324
Use Twig namespaces
XWB Jan 8, 2020
a9e71b6
Merge branch '2.x'
XWB Jan 8, 2020
73c3f52
Merge pull request #2959 from XWB/twig-namespace
XWB Jan 8, 2020
4695340
Merge pull request #2955 from XWB/php74
XWB Jan 8, 2020
1cae491
Fixed changelog
XWB Jan 8, 2020
899e2eb
Merge pull request #2957 from XWB/php55
XWB Jan 8, 2020
09572d7
Update changelog
XWB Jan 8, 2020
36a1add
Fixed Mailer bc break
XWB Jan 8, 2020
ef46961
Merge pull request #2960 from XWB/bc-break-fix
XWB Jan 8, 2020
6ffbb50
Deprecate Groups
XWB Jan 8, 2020
47bcfd3
Added deprecated phpdoc
XWB Jan 8, 2020
8842b90
Add some legacy test
XWB Jan 8, 2020
f75e103
Run cs fixer
XWB Jan 9, 2020
492aa4a
Update changelog
XWB Jan 9, 2020
6731100
Extracted some tests
XWB Jan 9, 2020
64bc98f
Moved more tests
XWB Jan 9, 2020
6ca6213
Removed annotation
XWB Jan 9, 2020
0cc80ad
Test
XWB Jan 9, 2020
ead6770
Make tests green again
XWB Jan 9, 2020
43512d1
Revert UserManagerInterface::updateUser() BC break
guilliamxavier Jan 21, 2020
475d8f8
Remove reverted entry from changelog
guilliamxavier Jan 27, 2020
5a7f8ac
Merge pull request #2961 from XWB/tests-green
stof Mar 31, 2020
0bdc432
Merge pull request #2962 from guilliamxavier/patch-1
stof Mar 31, 2020
157b53b
Merge pull request #2934 from Yurujai/changes_for_doctrine_mongodb_2.0
stof Mar 31, 2020
cf7fe27
Merge pull request #2949 from michaelmo5/patch-1
stof Mar 31, 2020
b2e6a4d
Merge pull request #2953 from XWB/deprecate-group
stof Mar 31, 2020
6ebe1dd
skip MailerTest for Symfony > 5
peter-gribanov May 26, 2020
f51a4a0
Add support for doctrine/persistence v2
nenadalm Mar 5, 2021
2cde698
Update doctrine/persistence valid versions
nenadalm Mar 8, 2021
e26b6c5
feat: add check code style and composer validate in github actions
Yozhef May 13, 2021
61b88e6
feat: run php cs in php version 7.4
Yozhef May 13, 2021
8b12923
feat: run ci check php version and symfony
Yozhef May 13, 2021
dc2a8f3
feat: hide deprecated error
Yozhef May 13, 2021
66d0cd6
feat: remove travis
Yozhef May 13, 2021
8bfed65
feat: update build status
Yozhef May 13, 2021
e42555d
Merge pull request #3003 from Yozhef/addGitHubAction
stof Jul 1, 2021
e76db6a
Allow PHP8 and use phpunit-bridge to run tests
acrobat Jul 3, 2021
d856907
Fix phpunit warnings
acrobat Jul 3, 2021
2475dc5
Merge branch '2.x'
stof Aug 26, 2021
3543a62
Merge pull request #3000 from imatic/doctrine_persistence
stof Aug 26, 2021
7862edf
Merge pull request #3006 from acrobat/php8-support
stof Aug 26, 2021
5f35aee
Drop support for Symfony lower than 5.4
stof Aug 26, 2021
d8e9238
Enable the static analysis check for PRs against the 2.x branch
stof Aug 26, 2021
71eed9a
Fix coding standards
stof Aug 26, 2021
69cb175
Upgrade the config of php-cs-fixer to the new format
stof Aug 26, 2021
8fd068a
Upgrade to php-cs-fixer v3
stof Aug 26, 2021
7cf3afb
Remove code supporting older versions of symfony/config
stof Aug 26, 2021
e8e5eb7
Add some required extensions in the composer.json
stof Aug 26, 2021
66498d6
Merge pull request #3008 from stof/remove_unmaintained_deps
stof Aug 26, 2021
cfcd2e8
Migrate to the new event dispatching signature
stof Aug 26, 2021
3c0d934
Merge pull request #3009 from stof/fix_event_dispatching
stof Aug 26, 2021
a480b9f
Tag classes as internal or final as appropriate
stof Aug 26, 2021
4842949
Merge pull request #3010 from stof/tag_classes
stof Aug 26, 2021
de18f98
Update the branch-alias for the master branch
stof Aug 26, 2021
abd3534
Fix remaining event dispatching missed in the migration
stof Aug 26, 2021
246e7ba
Merge pull request #3011 from stof/fix_event_migration
stof Aug 26, 2021
a911282
Update the changelog
stof Aug 26, 2021
fabe92a
Merge branch '2.x'
stof Aug 26, 2021
18f0535
Remove the group feature
stof Aug 31, 2021
a711096
Merge pull request #3014 from stof/remove_groups
stof Aug 31, 2021
79febe6
Change the base class for events
stof Aug 31, 2021
3ce949e
Change the base class of controllers
stof Aug 31, 2021
43fa5db
Merge pull request #3015 from stof/change_event_classes
stof Sep 1, 2021
ce2f21d
Merge pull request #3016 from stof/change_controller_class
stof Sep 1, 2021
c504314
Add the return type for the execute method of commands
stof Sep 1, 2021
bb00833
Merge pull request #3017 from stof/console_return_type
stof Sep 1, 2021
439f5d5
Remove the random_compat dependency
stof Sep 1, 2021
28ad9f0
Add explicit requirements for components used in the bundle
stof Sep 1, 2021
1fa760d
Merge pull request #3018 from stof/clean_dependency
stof Sep 1, 2021
70e1c1b
Fix the phpdoc for the plain password field in UserInterface
stof Sep 1, 2021
9e9303a
Remove AdvancedUserInterface methods from our UserInterface
stof Sep 1, 2021
73ddfd1
Change the implementation of serialization for the user
stof Sep 1, 2021
d3a1a8b
Merge pull request #3019 from stof/clean_user_interface
stof Sep 1, 2021
c03ecda
Use the TranslatorInterface from symfony contracts
stof Sep 1, 2021
0ef762f
Use the double-colon notation for controllers
stof Sep 1, 2021
90b5d2d
Avoid using the LegacyEventDispatcherProxy on Symfony 5+
stof Sep 1, 2021
fc3df5b
Stop using the session service in the FlashListener
stof Sep 2, 2021
da1cfab
Use the symfony authentication util instead of duplicating it
stof Sep 2, 2021
c39eeec
Check for the presence of the session in the template
stof Sep 2, 2021
85523c6
Allow Symfony 5 packages
stof Sep 2, 2021
63700da
Use the Symfony TypeTestCase directly
stof Sep 2, 2021
3cda0c9
Remove left-over code dealing with Symfony 2.x APIs
stof Sep 2, 2021
1af6015
Add the void return type on PHPUnit methods
stof Sep 2, 2021
312c8a5
Merge pull request #3020 from stof/symfony_5
stof Sep 2, 2021
3ef42d3
Add an option to skip registering the last login date
stof Sep 2, 2021
64e6e8c
Merge pull request #3021 from stof/register_last_login
stof Sep 2, 2021
fea2c50
Add the maintenance status in the readme
stof Sep 2, 2021
7f239bb
Merge pull request #3022 from stof/status
stof Sep 2, 2021
185ca29
Remove obsolete translation from the Spanish file
stof Sep 8, 2021
622ef82
Remove deprecation warnings triggered when loading some interfaces
stof Sep 8, 2021
dcc2ec6
Merge pull request #3023 from stof/fix_deprecation_warnings
stof Sep 8, 2021
875dd27
Merge branch '2.x'
stof Sep 8, 2021
be2d262
Fix a deprecation about groups being triggered when loading ORM metadata
stof Sep 8, 2021
813161b
Merge pull request #3024 from stof/fix_more_deprecation
stof Sep 8, 2021
b48f820
Merge branch '2.x'
stof Sep 8, 2021
446c394
Replace usages of old namespace `Doctrine\Common\Persistence\` with `…
phansys Sep 17, 2021
d2dc95a
Merge pull request #3025 from phansys/doctrine_persistence
stof Sep 24, 2021
aaf78e1
Remove wrong deprecated annotation on the UserInterface
stof Jan 14, 2022
0eb35c3
Redeclare the getUser method in GetResponseNullableUserEvent
stof Jan 14, 2022
2bfe26b
Add missing deprecations on group-related event classes
stof Jan 14, 2022
0407070
Merge pull request #3030 from stof/add_missing_deprecations
stof Jan 14, 2022
5e9f2af
Merge pull request #3031 from stof/fix_static_analysis
stof Jan 14, 2022
90d7848
Update the changelog for 2.2.3
stof Jan 14, 2022
00f31cc
Merge branch '2.x'
stof Jan 14, 2022
0aab2c2
Merge pull request #2986 from peter-gribanov/templating_deprecation
stof Jan 14, 2022
7cd6d74
Allow doctrine-bundle 2 in dev requirements
stof Jan 14, 2022
334a6e8
Fix deprecation warning for UserInterface on Symfony 4
stof Jan 14, 2022
5459f83
Merge pull request #3033 from stof/fix_user_deprecation
stof Jan 14, 2022
2b85970
Fix the skipping check in MailerTest
stof Jan 14, 2022
e68ac62
Skip the bcrypt encoder test on Symfony 5
stof Jan 14, 2022
1770765
Avoid using the buggy 3.5.0 version of php-cs-fixer
stof Jan 14, 2022
fd6d0c2
Merge pull request #3032 from stof/allow_doctrine_bundle_2
stof Mar 30, 2022
4eeb99b
Fix the variance rules for events
stof Mar 30, 2022
b81b711
Merge branch '2.x'
stof Mar 30, 2022
612e4fa
Implement PasswordAuthenticatedUserInterface when appropriate
stof Mar 30, 2022
13cf3b1
Fix the testsuite
stof Mar 30, 2022
84dedcb
Add support for the password-hasher component
stof Mar 30, 2022
e9c8a3a
Implement the new API for the user provider
stof Mar 30, 2022
f01ec13
Merge pull request #3035 from stof/fix_event_variance
stof Mar 30, 2022
a9f9661
Bump the min PHP version to PHP 7.4
stof Mar 30, 2022
c9565e8
Merge pull request #3036 from stof/new_security_system
stof Apr 4, 2022
ab7774e
Add return types
stof Apr 4, 2022
b256db1
Merge pull request #3037 from stof/add_types
stof Apr 4, 2022
b98ab7e
Remove the creation of an alias for the session service
stof Apr 4, 2022
a3a6756
Merge pull request #3038 from stof/remove_session_alias
stof Apr 4, 2022
1529f2e
Add the getUsername method in our own interface
stof Apr 27, 2022
b8a80db
Avoid relying on the getSalt method when using UserInterface
stof Apr 27, 2022
613dcce
Remove usage of the isAccountNonLocked method
stof Apr 27, 2022
4d59e8e
Rename the compiler pass checking for Swiftmailer
stof Apr 27, 2022
20d6b0e
Use the swiftmailer-specific id to access the Swift_Mailer service
stof Apr 27, 2022
291ec7a
Merge pull request #3039 from stof/fix_user_interface
stof Apr 27, 2022
f2a6f91
Remove legacy BC layer
stof Apr 27, 2022
696975b
Merge pull request #3040 from stof/clean_swiftmailer
stof Apr 27, 2022
ac13731
Merge pull request #3041 from stof/clean_encoder
stof Apr 27, 2022
9befc59
Force selecting a mailer service when using features needing the mailer
stof Apr 27, 2022
42694fd
Add autowiring support for the MailerInterface
stof Apr 27, 2022
8b80a8e
Remove the legacy mailer based on symfony/templating
stof Apr 27, 2022
2fffdac
Merge pull request #3042 from stof/no_default_mailer
stof Apr 27, 2022
47d7bfe
Clean the doc
stof Apr 28, 2022
0b5cd6f
Add the release date for 3.0
stof Apr 28, 2022
ded5fc9
Fix coding standards
stof Aug 27, 2022
2a7efdf
Merge pull request #3045 from stof/fix_cs
stof Aug 27, 2022
89db930
Fix the wiring of controllers
stof Aug 27, 2022
0cc6ac6
Merge pull request #3044 from stof/fix_wiring
stof Aug 27, 2022
92a906c
Update the changelog for 3.0.1
stof Aug 27, 2022
5b90331
Fix types for the UserManipulator factory methods in tests
stof Oct 24, 2022
e007993
Fix coding standards
stof Oct 24, 2022
94d688e
Enable the reporting of deprecations in the testsuite
stof Oct 20, 2022
b8386cb
Fix the test expectation for the user providers
stof Oct 20, 2022
8e92dfa
Add support for the new remember-me system for the programmatic login
stof Oct 24, 2022
29b8dcb
Mark the old password updater tests as legacy
stof Oct 24, 2022
fc2710a
Fix deprecation warning for the UsernamePasswordToken constructor
stof Oct 24, 2022
0b96e82
Merge pull request #3048 from stof/fix_deprecation
stof Oct 24, 2022
afab816
Add support for Symfony 6
stof Oct 20, 2022
4bcde71
Add the AsCommand attribute on command classes
stof Oct 24, 2022
1cbe2a0
Update the changelog
stof Oct 26, 2022
cba15a7
Merge pull request #3047 from stof/symfony_6
stof Oct 26, 2022
89c18b6
Update changelog
stof Oct 26, 2022
f6688cd
Fix the registration controller with Symfony 6.x
stof Jul 6, 2023
888068a
Merge pull request #3055 from stof/fix_registration_controller
stof Jul 6, 2023
6a6a32e
Fix coding standards
stof Jul 6, 2023
7027dc5
Mark the TwigSwiftMailerTest as legacy
stof Jul 6, 2023
9351e06
Add return types to avoid deprecation warnings
stof Jul 6, 2023
e708d65
Enable the XSD validation for the ORM mapping
stof Jul 6, 2023
e8e6ed3
Merge pull request #3057 from stof/fix_deprecations
stof Jul 6, 2023
6b495f1
Fix the access to the session in the email confirmation listener
stof Jul 6, 2023
7450904
Add a CI job for PHP 8.2
stof Jul 6, 2023
2dcc4f2
Update the CI setup
stof Jul 6, 2023
fab5b63
Merge pull request #3058 from stof/php82
stof Jul 6, 2023
104e486
Merge pull request #3056 from stof/fix_confirmation_email
stof Jul 6, 2023
5dfe21d
Merge pull request #3059 from stof/clean_ci
stof Jul 6, 2023
627efd4
Update the changelog
stof Jul 6, 2023
48f0746
Add more void return types
stof Jul 6, 2023
c397959
Register doctrine listeners instead of subscribers
stof Jul 6, 2023
de68488
Merge pull request #3060 from stof/fix_more_deprecations
stof Jul 6, 2023
8ccde38
Update the changelog
stof Jul 6, 2023
62eaceb
Add return types in all methods
stof Jan 16, 2024
4c0a2a8
Merge pull request #3069 from stof/return_types
stof Jan 16, 2024
dd15a76
Add a mailer implementation based on symfony/mailer
stof Jan 16, 2024
c70ecfd
Merge pull request #3068 from stof/symfony_mailer
stof Jan 16, 2024
f6298a1
Update the changelog for 3.3.0
stof Jun 24, 2024
05480c5
Update coding standards
stof Jun 24, 2024
bcf3712
Update the CI setup
stof Jun 24, 2024
ca1c894
Merge pull request #3071 from stof/update_ci
stof Jun 24, 2024
49461c4
Fix the symfony locking in the CI setup
stof Jun 24, 2024
271c4c6
Merge pull request #3072 from stof/fix_symfony_locking
stof Jun 24, 2024
1156480
Move the source code in a src/ folder
stof Oct 24, 2022
8c9fde0
Move the documentation to the root
stof Oct 24, 2022
9a7485c
Remove usages of the code block shortcut in rST
stof Oct 26, 2022
bbdacd5
Merge pull request #3073 from stof/reorganize_files
stof Jun 24, 2024
f876bff
Improve type declarations in the project
stof Jun 24, 2024
682ebb6
Merge pull request #3074 from stof/improve_types
stof Jun 24, 2024
495bab8
Deprecate the CouchDB ODM integration
stof Jun 24, 2024
33cb79a
Merge pull request #3075 from stof/deprecate_couchdb
stof Jun 24, 2024
ae4ce46
Update the changelog
stof Jun 24, 2024
11bc04e
Update the branch alias to be 4.x-dev
stof Jun 24, 2024
c7ae534
Mark classes a final
stof Jun 24, 2024
e2e866a
Remove the CouchDB integration
stof Jun 24, 2024
e5a1634
Remove outdated mention of a deprecated feature from the docs
stof Jun 24, 2024
5ead80e
Change the base class of the DI extension
stof Jun 24, 2024
289ce2d
Merge pull request #3076 from stof/prepare_major_version
stof Jun 24, 2024
4925caf
Allow symfony 7
simoheinonen Dec 13, 2023
095260b
Merge pull request #3067 from simoheinonen/sf7
stof Jun 24, 2024
a496f92
Bump the min PHP version to 8.1
stof Jun 24, 2024
431db88
Bump the min Symfony version to 6.4
stof Jun 24, 2024
b020a01
Merge pull request #3077 from stof/bump_min_version
stof Jun 24, 2024
8af777c
Update tests to check the twig_symfony mailer config
stof Jun 24, 2024
2a7e34d
Remove the mailer implementation based on Swiftmailer
stof Jun 24, 2024
0e2475a
Merge pull request #3078 from stof/remove_swiftmailer
stof Jun 24, 2024
784178a
Remove the left-over PasswordUpdater class
stof Jun 25, 2024
43902b4
Merge pull request #3079 from stof/remove_password_updater
stof Jun 25, 2024
380f442
Fix invalid mock in tests
stof Jun 25, 2024
4ef57b3
Update tests to check the twig_symfony mailer config
stof Jun 24, 2024
bad4ddb
Merge pull request #3081 from stof/fix_tests
stof Jun 25, 2024
1bd8db5
Deprecate the TwigSwiftMailer implementation
stof Jun 25, 2024
03b2593
Enable the static analysis CI workflow for the 3.x branch
stof Jun 25, 2024
cdd9fe2
Remove the reference to ZetaWebmailBundle in the documentation
stof Jun 25, 2024
0ed476a
Merge pull request #3083 from stof/ci
stof Jun 25, 2024
119ed17
Merge pull request #3082 from stof/deprecate_swiftmailer
stof Jun 25, 2024
f0d6a90
Merge pull request #3084 from stof/clean_docs
stof Jun 25, 2024
12ac215
Merge branch '3.x'
stof Jun 25, 2024
49f2c44
Remove unused dependency
stof Jun 25, 2024
fd22eae
Add native return types
stof Jun 25, 2024
dc09a0c
Merge pull request #3080 from stof/return_types
stof Jun 25, 2024
165dbcf
Remove the implementation of the old UserProviderInterface method
stof Jun 25, 2024
c079a95
Merge pull request #3085 from stof/clean_user_provider
stof Jun 25, 2024
16863df
Remove unnecessary compatibility checks in tests
stof Jun 25, 2024
0ba37d5
Remove unused argument in tests
stof Jun 25, 2024
914112d
Merge pull request #3086 from stof/clean_tests
stof Jul 3, 2024
901069c
Update the changelog for 4.0
stof Jul 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 11 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/.github export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.php-cs-fixer.dist.php export-ignore
/Changelog.md export-ignore
/Makefile export-ignore
/README.md export-ignore
/docs/ export-ignore
/tests/ export-ignore
/Upgrade.md export-ignore
/phpunit.xml.dist export-ignore
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!--
GitHub is reserved for bug reports and feature requests.
Please include one and only one of the below blocks
in your new issue.
-->

<!--
If you are filing a bug report, please remove the below feature
request block and provide responses for all of the below items.
-->

**Symfony FOSUserBundle versions**:

<!--
You can run `composer info` in your project to get those informations
-->

**Description of the problem including expected versus actual behavior**:

**Steps to reproduce**:
1.
2.
3.

**Provide logs (if relevant)**:

<!--
If you are filing a feature request, please remove the above bug
report block and provide responses for all of the below items.
-->

**Describe the feature**:
58 changes: 58 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: CI

on:
pull_request:
push:
branches:
- master
- 2.x
- 3.x

jobs:
run:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php:
- '8.1'
- '8.2'
- '8.3'
symfony-versions: [false]
include:
- description: 'Symfony 6.*'
php: '8.2'
symfony-versions: '^6.4'
name: PHP ${{ matrix.php }} ${{ matrix.description }}
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: actions/cache@v4
with:
path: ~/.composer/cache/files
key: composer-${{ matrix.php }}-${{ matrix.symfony-versions }}-${{ hashFiles('composer.json') }}
restore-keys: |
composer-${{ matrix.php }}-
composer-

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}

- name: Install symfony/flex
run: composer config --global --no-plugins allow-plugins.symfony/flex true && composer global require symfony/flex
if: matrix.symfony-versions

- name: Install dependencies
env:
SYMFONY_REQUIRE: ${{ matrix.symfony-versions }}
run: composer update

- name: Install PHPUnit
run: ./vendor/bin/simple-phpunit install

- name: Run PHPUnit tests
run: |
./vendor/bin/simple-phpunit
35 changes: 35 additions & 0 deletions .github/workflows/static-analysis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Code style and composer validate

on:
pull_request:
push:
branches: [ master, 2.x, 3.x ]

jobs:
composer-validate:
name: Validate composer.json
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Validate
run: composer validate --no-check-lock --strict

php-cs-fixer:
name: PHP-CS-Fixer
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'

- name: Install dependencies
run: composer install

- name: Run script
run: vendor/bin/php-cs-fixer fix --verbose --diff --dry-run
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.php-cs-fixer.php
.php-cs-fixer.cache
composer.lock
phpunit.xml
nbproject
catalog.xml
vendor/
.phpunit.result.cache
37 changes: 37 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php

$header = <<<EOF
This file is part of the FOSUserBundle package.

(c) FriendsOfSymfony <http://friendsofsymfony.github.com/>

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOF;

return (new PhpCsFixer\Config())
->setRules([
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'combine_consecutive_unsets' => true,
'header_comment' => ['header' => $header],
'linebreak_after_opening_tag' => true,
'no_php4_constructor' => true,
'no_useless_else' => true,
'ordered_class_elements' => true,
'ordered_imports' => true,
'php_unit_construct' => true,
'php_unit_strict' => true,
'phpdoc_no_empty_return' => false,
'no_superfluous_phpdoc_tags' => [
'remove_inheritdoc' => true,
'allow_mixed' => true,
],
])
->setUsingCache(true)
->setRiskyAllowed(true)
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__)
)
;
Loading