Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] 6.x #405

Merged
merged 34 commits into from
Jul 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
798f1bb
Updated CI
DamienHarper Dec 3, 2022
d40333d
Fixed middlewares override (#341)
DamienHarper Dec 8, 2022
f09c366
Revert unwanted PHP >= 8.0 changes
DamienHarper Dec 9, 2022
4af969b
Updated branch alias
DamienHarper Dec 9, 2022
4b5c079
Reverted and adjusted middleware test
DamienHarper Dec 9, 2022
3f31c91
Adjusted middleware registration priority (fixed failing tests)
DamienHarper Dec 14, 2022
ede1cc8
Fixed unwanted deps changes
DamienHarper Feb 22, 2023
3da0a92
Fixed failing test
DamienHarper Feb 23, 2023
868e26b
#345 Deprecation in RoleChecker and UserProvider (#350)
dmitryuk Feb 27, 2023
9ef5cb9
Fixed CI (PHPStan)
DamienHarper Feb 27, 2023
3138f46
Support doctrine/annotations:2.0 (#351)
dmitryuk Mar 1, 2023
f1c4317
Fixed compatibility with Symfony 4.4
DamienHarper Mar 1, 2023
b94b518
PHP-CS-Fixer
DamienHarper May 23, 2023
e433255
Fixed CI (#367)
DamienHarper Jun 9, 2023
7ce0d36
PHP-CS-Fixer
DamienHarper Jun 19, 2023
a03c399
Fix: `ViewerController` (#379)
OskarStark Dec 20, 2023
f01a6e0
CI updates
DamienHarper Dec 21, 2023
95a832a
Make `ViewerController` final (#385)
OskarStark Dec 22, 2023
8502712
Test more PHP versions (#389)
OskarStark Dec 22, 2023
f1906c7
Use `actions/checkout@v4` (#387)
OskarStark Dec 22, 2023
db377c4
PHP-CS-Fixer
DamienHarper Dec 27, 2023
32085d7
Update deps + PHP-CS-Fixer
DamienHarper Jan 2, 2024
acb83a5
PHP-CS-Fixer (3.48.0)
DamienHarper Jan 21, 2024
1619ca9
Merge remote-tracking branch 'upstream/5.x' into 6.x
oleg-andreyev Feb 28, 2024
44639f7
6.x
oleg-andreyev Feb 28, 2024
802ad07
reverted ci-5.x.yml
oleg-andreyev Feb 28, 2024
13bf79a
reverted ci-5.x.yml
oleg-andreyev Feb 28, 2024
0154b31
clean composer.json
oleg-andreyev Feb 28, 2024
26ca70f
reverted ci-4.x.yml
oleg-andreyev Feb 28, 2024
21704d2
damienharper/auditor dev-master
oleg-andreyev Feb 29, 2024
01fc04c
allow ^3.1 orm
oleg-andreyev Mar 7, 2024
0ec7983
Merge remote-tracking branch 'refs/remotes/upstream/master' into 6.x
oleg-andreyev Jul 12, 2024
488b0cd
Merge branch 'master' into 6.x
DamienHarper Jul 14, 2024
a0f6c07
Merge branch 'master' into 6.x
DamienHarper Jul 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
152 changes: 80 additions & 72 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,75 +1,83 @@
{
"name": "damienharper/auditor-bundle",
"type": "symfony-bundle",
"description": "Integrate auditor library in your Symfony projects.",
"keywords": ["doctrine", "audit", "auditor", "audit-log", "audit-trail"],
"license": "MIT",
"authors": [
{
"name": "Damien Harper",
"email": "[email protected]"
}
],
"require": {
"php": ">=8.2",
"damienharper/auditor": "dev-master",
"doctrine/doctrine-bundle": "^2.0",
"doctrine/orm": "^2.13",
"symfony/asset": "^5.4|^6.0|^7.0",
"symfony/doctrine-bridge": "^5.4|^6.0|^7.0",
"symfony/event-dispatcher": "^5.4|^6.0|^7.0",
"symfony/lock": "^5.4|^6.0|^7.0",
"symfony/security-bundle": "^5.4|^6.0|^7.0",
"symfony/translation": "^5.4|^6.0|^7.0",
"symfony/twig-bundle": "^5.4|^6.0|^7.0",
"twig/extra-bundle": "^3.3",
"twig/intl-extra": "^3.3"
},
"autoload": {
"psr-4": {
"DH\\AuditorBundle\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"DH\\AuditorBundle\\Tests\\": "tests",
"DH\\Auditor\\Tests\\": "vendor/damienharper/auditor/tests"
}
},
"require-dev": {
"gedmo/doctrine-extensions": "^2.4|^3.0",
"matthiasnoback/symfony-dependency-injection-test": "^3.1|^4.0|^5.0",
"nyholm/symfony-bundle-test": "^2.0|^3.0",
"phpunit/phpunit": "^9.0",
"symfony/browser-kit": "^5.4|^6.0|^7.0",
"symfony/css-selector": "^5.4|^6.0|^7.0",
"symfony/framework-bundle": "^5.4|^6.0|^7.0",
"symfony/var-dumper": "^5.4|^6.0|^7.0",
"symfony/webpack-encore-bundle": "^1.12|^2.0",
"doctrine/data-fixtures": "^1.4"
},
"scripts": {
"test": "php -d pcov.enabled=1 ./vendor/bin/phpunit --colors=always",
"csfixer": "tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --using-cache=no --verbose --ansi",
"cs-check": "tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --using-cache=no --verbose --ansi --dry-run",
"phpstan": "tools/phpstan/vendor/bin/phpstan --ansi analyse src",
"setup44": "SYMFONY_REQUIRE='^4.4' composer update --prefer-stable",
"setup54": "SYMFONY_REQUIRE='^5.4' composer update --prefer-stable",
"rector": "tools/rector/vendor/bin/rector process src",
"rector-check": "tools/rector/vendor/bin/rector --dry-run",
"update-tools": "composer update --working-dir=tools/php-cs-fixer ; composer update --working-dir=tools/phpstan ; composer update --working-dir=tools/rector"
},
"config": {
"sort-packages": true,
"allow-plugins": {
"composer/package-versions-deprecated": true
}
},
"extra": {
"branch-alias": {
"dev-master": "6.x-dev",
"dev-5.x": "5.x-dev",
"dev-4.x": "4.x-dev"
}
"name": "damienharper/auditor-bundle",
"type": "symfony-bundle",
"description": "Integrate auditor library in your Symfony projects.",
"keywords": [
"doctrine",
"audit",
"auditor",
"audit-log",
"audit-trail"
],
"license": "MIT",
"authors": [
{
"name": "Damien Harper",
"email": "[email protected]"
}
],
"require": {
"php": ">=8.1",
"ext-json": "*",
"damienharper/auditor": "dev-master",
"doctrine/annotations": "^1.8|^2.0",
DamienHarper marked this conversation as resolved.
Show resolved Hide resolved
"doctrine/doctrine-bundle": "^2.0",
"doctrine/orm": "^2.13 || ^3.1" ,
"symfony/asset": "^5.4|^6.0|^7.0",
"symfony/doctrine-bridge": "^5.4|^6.0|^7.0",
"symfony/event-dispatcher": "^5.4|^6.0|^7.0",
"symfony/lock": "^5.4|^6.0|^7.0",
"symfony/security-bundle": "^5.4|^6.0|^7.0",
"symfony/translation": "^5.4|^6.0|^7.0",
"symfony/twig-bundle": "^5.4|^6.0|^7.0",
"twig/extra-bundle": "^3.3",
"twig/intl-extra": "^3.3"
},
"autoload": {
"psr-4": {
"DH\\AuditorBundle\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"DH\\AuditorBundle\\Tests\\": "tests",
"DH\\Auditor\\Tests\\": "vendor/damienharper/auditor/tests"
}
},
"require-dev": {
"gedmo/doctrine-extensions": "^2.4|^3.0",
"matthiasnoback/symfony-dependency-injection-test": "^3.1|^4.0|^5.0",
"nyholm/symfony-bundle-test": "^2.0|^3.0",
"phpunit/phpunit": "^9.0",
"symfony/browser-kit": "^5.4|^6.0|^7.0",
"symfony/css-selector": "^5.4|^6.0|^7.0",
"symfony/framework-bundle": "^5.4|^6.0|^7.0",
"symfony/var-dumper": "^5.4|^6.0|^7.0",
"symfony/webpack-encore-bundle": "^1.12|^2.0",
"doctrine/data-fixtures": "^1.4"
},
"scripts": {
"test": "php -d pcov.enabled=1 ./vendor/bin/phpunit --colors=always",
"csfixer": "tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --using-cache=no --verbose --ansi",
"cs-check": "tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --using-cache=no --verbose --ansi --dry-run",
"phpstan": "tools/phpstan/vendor/bin/phpstan --ansi analyse src",
"setup44": "SYMFONY_REQUIRE='^4.4' composer update --prefer-stable",
"setup54": "SYMFONY_REQUIRE='^5.4' composer update --prefer-stable",
"rector": "tools/rector/vendor/bin/rector process src",
"rector-check": "tools/rector/vendor/bin/rector --dry-run",
"update-tools": "composer update --working-dir=tools/php-cs-fixer ; composer update --working-dir=tools/phpstan ; composer update --working-dir=tools/rector"
},
"config": {
"sort-packages": true,
"allow-plugins": {
"composer/package-versions-deprecated": true
}
},
"extra": {
"branch-alias": {
"dev-master": "6.x-dev",
"dev-5.x": "5.x-dev",
"dev-4.x": "4.x-dev"
}
}
}
2 changes: 2 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ includes:
parameters:
level: max
inferPrivatePropertyTypeFromConstructor: true
paths:
- src

excludePaths:
- '%currentWorkingDirectory%/src/DependencyInjection/Configuration.php'
Expand Down
2 changes: 1 addition & 1 deletion src/User/UserProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private function getImpersonatorUser(): ?UserInterface
{
$token = $this->tokenStorage->getToken();

if (null !== $token && $token instanceof SwitchUserToken) {
if ($token instanceof SwitchUserToken) {
return $token->getOriginalToken()->getUser();
}

Expand Down
Loading