Skip to content

Commit 50b34bb

Browse files
committed
Convert Doctrine subscribers to abstract classes
1 parent 04c2f09 commit 50b34bb

File tree

3 files changed

+2
-19
lines changed

3 files changed

+2
-19
lines changed

src/Doctrine/NotificationSubscriber.php renamed to src/Doctrine/AbstractNotificationSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
/**
2121
* Doctrine listener to handle user notifications.
2222
*/
23-
class NotificationSubscriber implements EventSubscriberInterface
23+
abstract class AbstractNotificationSubscriber implements EventSubscriberInterface
2424
{
2525
/** @var EventDispatcherInterface */
2626
protected $eventDispatcher;

src/Doctrine/UserSubscriber.php renamed to src/Doctrine/AbstractUserSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
/**
1616
* Doctrine listener updating the canonical username and password fields.
1717
*/
18-
class UserSubscriber implements EventSubscriberInterface
18+
abstract class AbstractUserSubscriber implements EventSubscriberInterface
1919
{
2020
/** @var PasswordHasherFactoryInterface */
2121
private $hasherFactory;

src/Resources/config/services.yaml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,6 @@ services:
1212
EWZ\SymfonyAdminBundle\FileUploader\FileUploaderInterface:
1313
alias: 'symfony_admin.file_uploader'
1414

15-
#
16-
# Doctrine
17-
#
18-
19-
EWZ\SymfonyAdminBundle\Doctrine\NotificationSubscriber:
20-
tags:
21-
- { name: doctrine.event_subscriber, connection: default }
22-
arguments:
23-
- '@event_dispatcher'
24-
- '@security.token_storage'
25-
26-
EWZ\SymfonyAdminBundle\Doctrine\UserSubscriber:
27-
tags:
28-
- { name: doctrine.event_subscriber, connection: default }
29-
arguments:
30-
- '@security.password_hasher_factory'
31-
3215
#
3316
# Security
3417
#

0 commit comments

Comments
 (0)