-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactored AccountRecoveryService and added support for SMS recovery #…
- Loading branch information
1 parent
a392846
commit df1a81d
Showing
8 changed files
with
413 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
src/LoginCidadao/AccountRecoveryBundle/Event/SendResetPasswordSmsEvent.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
/** | ||
* This file is part of the login-cidadao project or it's bundles. | ||
* | ||
* (c) Guilherme Donato <guilhermednt on github> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace LoginCidadao\AccountRecoveryBundle\Event; | ||
|
||
use LoginCidadao\AccountRecoveryBundle\Entity\AccountRecoveryData; | ||
use Symfony\Component\EventDispatcher\Event; | ||
|
||
class SendResetPasswordSmsEvent extends Event | ||
{ | ||
/** @var AccountRecoveryData */ | ||
private $accountRecoveryData; | ||
|
||
/** | ||
* SendResetPasswordSmsEvent constructor. | ||
* @param AccountRecoveryData $accountRecoveryData | ||
*/ | ||
public function __construct(AccountRecoveryData $accountRecoveryData) | ||
{ | ||
$this->accountRecoveryData = $accountRecoveryData; | ||
} | ||
|
||
/** | ||
* @return AccountRecoveryData | ||
*/ | ||
public function getAccountRecoveryData(): AccountRecoveryData | ||
{ | ||
return $this->accountRecoveryData; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.