Skip to content

Commit

Permalink
Fix to allow auto configuration for PasswordHashingDoctrineEventSubsc…
Browse files Browse the repository at this point in the history
…riber
  • Loading branch information
schvoy committed Sep 15, 2024
1 parent 3f7f31c commit b82153f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.0.4

* Fix to allow auto configuration for PasswordHashingDoctrineEventSubscriber

## 1.0.3

* Fix PasswordUpdater if password is null
Expand Down
2 changes: 2 additions & 0 deletions src/Resources/config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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' ]
15 changes: 1 addition & 14 deletions tests/config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/'

0 comments on commit b82153f

Please sign in to comment.