| 1 | <?php |
||
| 3 | class FacebookAuthenticator extends Authenticator |
||
|
|
|||
| 4 | { |
||
| 5 | public static function get_name() |
||
| 13 | |||
| 14 | public static function get_login_form(Controller $controller) |
||
| 21 | |||
| 22 | |||
| 23 | /** |
||
| 24 | * Method to authenticate an user |
||
| 25 | * |
||
| 26 | * @param array $RAW_data Raw data to authenticate the user |
||
| 27 | * @param Form $form Optional: If passed, better error messages can be |
||
| 28 | * produced by using |
||
| 29 | * {@link Form::sessionMessage()} |
||
| 30 | * @return bool|Member Returns FALSE if authentication fails, otherwise |
||
| 31 | * the member object |
||
| 32 | */ |
||
| 33 | public static function authenticate($RAW_data, Form $form = null) |
||
| 37 | } |
||
| 38 |
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.