1 | <?php |
||
6 | class ResetPasswordCommand extends SilverstripeCommand |
||
|
|||
7 | { |
||
8 | /** |
||
9 | * @var string |
||
10 | */ |
||
11 | protected $name = 'security:resetpassword'; |
||
12 | |||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $description = 'Send a reset password link to an email address'; |
||
17 | |||
18 | public function fire() |
||
30 | |||
31 | /** |
||
32 | * @return Member|null |
||
33 | */ |
||
34 | protected function getMemberByEmailOrID() |
||
48 | |||
49 | /** |
||
50 | * Send the reset password email and return the generated link. |
||
51 | * |
||
52 | * @param Member $member |
||
53 | * @return string |
||
54 | */ |
||
55 | protected function sendResetPasswordEmail(Member $member) |
||
78 | |||
79 | /** |
||
80 | * @return array |
||
81 | */ |
||
82 | protected function getArguments() |
||
88 | } |
||
89 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.