From b82153f8e6d6f5d23767a734beded2401e65531b Mon Sep 17 00:00:00 2001 From: Norbert Schvoy Date: Mon, 16 Sep 2024 00:33:19 +0200 Subject: [PATCH] Fix to allow auto configuration for PasswordHashingDoctrineEventSubscriber --- CHANGELOG.md | 4 ++++ src/Resources/config/services.yaml | 2 ++ tests/config/services.yaml | 15 +-------------- 3 files changed, 7 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 213deea..b74d4ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 1.0.4 + +* Fix to allow auto configuration for PasswordHashingDoctrineEventSubscriber + ## 1.0.3 * Fix PasswordUpdater if password is null diff --git a/src/Resources/config/services.yaml b/src/Resources/config/services.yaml index 48db193..af72c55 100644 --- a/src/Resources/config/services.yaml +++ b/src/Resources/config/services.yaml @@ -10,4 +10,6 @@ services: Schvoy\UserBundle\Security\PasswordUpdaterInterface: '@Schvoy\UserBundle\Security\PasswordUpdater' Schvoy\UserBundle\EventSubscriber\PasswordHashingDoctrineEventSubscriber: + autoconfigure: true + autowire: true tags: [ 'doctrine.event_subscriber' ] \ No newline at end of file diff --git a/tests/config/services.yaml b/tests/config/services.yaml index 1c8d71f..4944243 100644 --- a/tests/config/services.yaml +++ b/tests/config/services.yaml @@ -20,17 +20,4 @@ services: alias: Symfony\Bundle\SecurityBundle\Security Schvoy\UserBundle\Tests\Services\: - resource: '../Services/' - - ## Copy of src/Resources/config/services.yaml - - Schvoy\UserBundle\Repository\UserRepository: - autowire: true - autoconfigure: true - - Schvoy\UserBundle\Security\PasswordUpdater: - autowire: true - - Schvoy\UserBundle\Security\PasswordUpdaterInterface: '@Schvoy\UserBundle\Security\PasswordUpdater' - - Schvoy\UserBundle\EventSubscriber\PasswordHashingDoctrineEventSubscriber: + resource: '../Services/' \ No newline at end of file