1 | <?php |
||
9 | class OpauthAuthenticator extends MemberAuthenticator { |
||
|
|||
10 | |||
11 | private static |
||
12 | /** |
||
13 | * @var Opauth Persistent Opauth instance. |
||
14 | */ |
||
15 | $opauth; |
||
16 | |||
17 | /** |
||
18 | * get_enabled_strategies |
||
19 | * @return array Enabled strategies set in _config |
||
20 | */ |
||
21 | public static function get_enabled_strategies() { |
||
25 | |||
26 | /** |
||
27 | * get_opauth_config |
||
28 | * @param array Any extra overrides |
||
29 | * @return array Config for use with Opauth |
||
30 | */ |
||
31 | public static function get_opauth_config($mergeConfig = array()) { |
||
42 | |||
43 | /** |
||
44 | * opauth |
||
45 | * @param boolean $autoRun Should Opauth auto run? Default: false |
||
46 | * @return Opauth The Opauth instance. Isn't it easy to typo this as Opeth? |
||
47 | */ |
||
48 | public static function opauth($autoRun = false, $config = array()) { |
||
54 | |||
55 | /** |
||
56 | * get_strategy_segment |
||
57 | * Works around Opauth's weird URL scheme - GoogleStrategy => /google/ |
||
58 | * @return string |
||
59 | */ |
||
60 | public static function get_strategy_segment($strategy) { |
||
63 | |||
64 | /** |
||
65 | * @return OpauthLoginForm |
||
66 | */ |
||
67 | public static function get_login_form(Controller $controller) { |
||
70 | |||
71 | /** |
||
72 | * Get the name of the authentication method |
||
73 | * |
||
74 | * @return string Returns the name of the authentication method. |
||
75 | */ |
||
76 | public static function get_name() { |
||
79 | |||
80 | } |
||
81 |
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.