| 1 | <?php namespace Modules\User\Commands\Handlers; |
||
| 9 | class BeginResetProcessCommandHandler |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var UserRepository |
||
| 13 | */ |
||
| 14 | private $user; |
||
| 15 | /** |
||
| 16 | * @var Authentication |
||
| 17 | */ |
||
| 18 | private $auth; |
||
| 19 | |||
| 20 | public function __construct(UserRepository $user, Authentication $auth) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Handle the command |
||
| 28 | * |
||
| 29 | * @param $command |
||
| 30 | * @throws UserNotFoundException |
||
| 31 | * @return mixed |
||
| 32 | */ |
||
| 33 | public function handle($command) |
||
| 41 | |||
| 42 | private function findUser($credentials) |
||
| 51 | } |
||
| 52 |