1 | <?php |
||
16 | class SAMLAuthenticator extends Authenticator |
||
|
|||
17 | { |
||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | private $name = 'SAML'; |
||
22 | |||
23 | /** |
||
24 | * @return string |
||
25 | */ |
||
26 | public static function get_name() |
||
30 | |||
31 | /** |
||
32 | * @param Controller $controller |
||
33 | * @return SAMLLoginForm |
||
34 | */ |
||
35 | public static function get_login_form(Controller $controller) |
||
39 | |||
40 | /** |
||
41 | * Sends the authentication process down the SAML rabbit hole. It will trigger |
||
42 | * the IdP redirection via the 3rd party implementation, and if successful, the user |
||
43 | * will be delivered to the SAMLController::acs. |
||
44 | * |
||
45 | * @param array $data |
||
46 | * @param Form $form |
||
47 | * @return bool|Member|void |
||
48 | * @throws SS_HTTPResponse_Exception |
||
49 | */ |
||
50 | public static function authenticate($data, Form $form = null) |
||
58 | } |
||
59 |
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.