PHP 클래스 App\Http\Controllers\API\LastfmController

상속: extends Controller
파일 보기 프로젝트 열기: phanan/koel

보호된 프로퍼티들

프로퍼티 타입 설명
$auth * The Guard implementation.

공개 메소드들

메소드 설명
__construct ( Illuminate\Contracts\Auth\Guard $auth ) Construct the controller and inject the current auth.
callback ( Illuminate\Http\Request $request, Lastfm $lastfm ) : Illuminate\Http\Response Serve the callback request from Last.fm.
connect ( Redirector $redirector, Lastfm $lastfm, Tymon\JWTAuth\JWTAuth $auth = null ) : Redirector | Illuminate\Http\RedirectResponse Connect the current user to Last.fm.
disconnect ( ) : Illuminate\Http\JsonResponse Disconnect the current user from Last.fm.
setSessionKey ( Illuminate\Http\Request $request ) : Illuminate\Http\JsonResponse Set the Last.fm session key of the current user.

메소드 상세

__construct() 공개 메소드

Construct the controller and inject the current auth.
public __construct ( Illuminate\Contracts\Auth\Guard $auth )
$auth Illuminate\Contracts\Auth\Guard

callback() 공개 메소드

Serve the callback request from Last.fm.
public callback ( Illuminate\Http\Request $request, Lastfm $lastfm ) : Illuminate\Http\Response
$request Illuminate\Http\Request
$lastfm App\services\Lastfm
리턴 Illuminate\Http\Response

connect() 공개 메소드

Connect the current user to Last.fm.
public connect ( Redirector $redirector, Lastfm $lastfm, Tymon\JWTAuth\JWTAuth $auth = null ) : Redirector | Illuminate\Http\RedirectResponse
$redirector Illuminate\Routing\Redirector
$lastfm App\services\Lastfm
$auth Tymon\JWTAuth\JWTAuth
리턴 Illuminate\Routing\Redirector | Illuminate\Http\RedirectResponse

disconnect() 공개 메소드

Disconnect the current user from Last.fm.
public disconnect ( ) : Illuminate\Http\JsonResponse
리턴 Illuminate\Http\JsonResponse

setSessionKey() 공개 메소드

Set the Last.fm session key of the current user.
public setSessionKey ( Illuminate\Http\Request $request ) : Illuminate\Http\JsonResponse
$request Illuminate\Http\Request
리턴 Illuminate\Http\JsonResponse

프로퍼티 상세

$auth 보호되어 있는 프로퍼티

* The Guard implementation.
protected $auth