Skip to content

Commit 2b874b6

Browse files
committed
renamed Ibexa\Contracts\User\PasswordReset\Notifier into Ibexa\Contracts\User\PasswordReset\NotifierInterface
1 parent a1d382f commit 2b874b6

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/bundle/Controller/PasswordResetController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use Ibexa\Contracts\Core\Repository\Values\User\User;
1818
use Ibexa\Contracts\Core\Repository\Values\User\UserTokenUpdateStruct;
1919
use Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface;
20-
use Ibexa\Contracts\User\PasswordReset\Notifier;
20+
use Ibexa\Contracts\User\PasswordReset\NotifierInterface;
2121
use Ibexa\User\ExceptionHandler\ActionResultHandler;
2222
use Ibexa\User\Form\Data\UserPasswordResetData;
2323
use Ibexa\User\Form\Factory\FormFactory;
@@ -42,15 +42,15 @@ class PasswordResetController extends Controller
4242

4343
private ConfigResolverInterface $configResolver;
4444

45-
private Notifier $passwordResetMailer;
45+
private NotifierInterface $passwordResetMailer;
4646

4747
public function __construct(
4848
FormFactory $formFactory,
4949
UserService $userService,
5050
ActionResultHandler $actionResultHandler,
5151
PermissionResolver $permissionResolver,
5252
ConfigResolverInterface $configResolver,
53-
Notifier $passwordResetMailer
53+
NotifierInterface $passwordResetMailer
5454
) {
5555
$this->formFactory = $formFactory;
5656
$this->userService = $userService;

src/bundle/Resources/config/services/notifier.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ services:
66

77
Ibexa\User\PasswordReset\Notifier: ~
88

9-
Ibexa\Contracts\User\PasswordReset\Notifier: '@Ibexa\User\PasswordReset\Notifier'
9+
Ibexa\Contracts\User\PasswordReset\NotifierInterface: '@Ibexa\User\PasswordReset\Notifier'

src/contracts/PasswordReset/Notifier.php renamed to src/contracts/PasswordReset/NotifierInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
use Ibexa\Contracts\Core\Repository\Values\User\User;
1212

13-
interface Notifier
13+
interface NotifierInterface
1414
{
1515
public function sendMessage(User $user, string $hashKey): void;
1616
}

src/lib/PasswordReset/Notifier.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
use Ibexa\Contracts\Notifications\Value\Recipent\SymfonyRecipientAdapter;
1616
use Ibexa\Contracts\Notifications\Value\Recipent\UserRecipient;
1717
use Ibexa\Contracts\User\Notification\UserPasswordReset;
18-
use Ibexa\Contracts\User\PasswordReset\Notifier as PasswordResetNotifierInterface;
18+
use Ibexa\Contracts\User\PasswordReset\NotifierInterface;
1919
use Swift_Mailer;
2020
use Swift_Message;
2121
use Twig\Environment;
2222

23-
final class Notifier implements PasswordResetNotifierInterface
23+
final class Notifier implements NotifierInterface
2424
{
2525
private ConfigResolverInterface $configResolver;
2626

0 commit comments

Comments
 (0)