| 1 | <?php |
||
| 3 | class EvernoteAuthController extends Controller { |
||
|
|
|||
| 4 | |||
| 5 | /** |
||
| 6 | * @var array |
||
| 7 | */ |
||
| 8 | private static $allowed_actions = array( |
||
| 9 | 'login','callback', |
||
| 10 | ); |
||
| 11 | |||
| 12 | /** |
||
| 13 | * authenticate with Evernote |
||
| 14 | */ |
||
| 15 | public function login() { |
||
| 26 | |||
| 27 | /** |
||
| 28 | * store token from Evernote and redirect to given url or redirect to home page |
||
| 29 | */ |
||
| 30 | public function callback() { |
||
| 50 | |||
| 51 | } |
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.