mirror of
https://github.com/flarum/framework.git
synced 2025-01-07 19:13:37 +08:00
Fix forgot password action
This commit is contained in:
parent
2aa9c2e746
commit
54ab536f96
|
@ -1,8 +1,8 @@
|
||||||
<?php namespace Flarum\Api\Actions;
|
<?php namespace Flarum\Api\Actions;
|
||||||
|
|
||||||
use Flarum\Api\Request;
|
use Flarum\Api\Request;
|
||||||
use Flarum\Core\Repositories\UserRepositoryInterface;
|
use Flarum\Core\Users\UserRepository;
|
||||||
use Flarum\Core\Commands\RequestPasswordReset;
|
use Flarum\Core\Users\Commands\RequestPasswordReset;
|
||||||
use Illuminate\Contracts\Bus\Dispatcher;
|
use Illuminate\Contracts\Bus\Dispatcher;
|
||||||
use Zend\Diactoros\Response\EmptyResponse;
|
use Zend\Diactoros\Response\EmptyResponse;
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ class ForgotAction extends JsonApiAction
|
||||||
|
|
||||||
protected $bus;
|
protected $bus;
|
||||||
|
|
||||||
public function __construct(UserRepositoryInterface $users, Dispatcher $bus)
|
public function __construct(UserRepository $users, Dispatcher $bus)
|
||||||
{
|
{
|
||||||
$this->users = $users;
|
$this->users = $users;
|
||||||
$this->bus = $bus;
|
$this->bus = $bus;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user