private function authHeader(Request $request) {
		if ($request->headers->has('authorization')) {
			$auth = $request->headers->get('authorization');
			if (!empty($auth)) {
				list(, $token) = explode(' ', $auth);
				if (empty($token)) {
					return null;
				}
				return $this->authToken($token);
			}
		}
		return null;
	}
private function authHeader(Request $request) {
		if ($request->headers->has('authorization')) {
			$auth = $request->headers->get('authorization');
			if (!empty($auth)) {
				list(, $token) = explode(' ', $auth);
				if (empty($token)) {
					return null;
				}
				return $this->authToken($token);
			}
		}
		return null;
	}
private function authHeader ( Request $ request ) { if ( $ request -> headers -> has ( 'authorization' ) ) { $ auth = $ request -> headers -> get ( 'authorization' ) ; if ( ! empty ( $ auth ) ) { list ( , $ token ) = explode ( ' ' , $ auth ) ; if ( empty ( $ token ) ) { return null ; } return $ this -> authToken ( $ token ) ; } } return null ; }
Authenticates a user by an authorization header

@param Request $request
@return Session|null
Authenticates a user by an authorization header