private function authCookie(Request $request) {
		if ($request->cookies->has(self::COOKIE_TOKEN_NAME)) {
			$token = $request->cookies->get(self::COOKIE_TOKEN_NAME);
			return $this->authToken($token);
		}
		return null;
	}
private function authCookie(Request $request) {
		if ($request->cookies->has(self::COOKIE_TOKEN_NAME)) {
			$token = $request->cookies->get(self::COOKIE_TOKEN_NAME);
			return $this->authToken($token);
		}
		return null;
	}
private function authCookie ( Request $ request ) { if ( $ request -> cookies -> has ( self :: COOKIE_TOKEN_NAME ) ) { $ token = $ request -> cookies -> get ( self :: COOKIE_TOKEN_NAME ) ; return $ this -> authToken ( $ token ) ; } return null ; }
Authenticates a user by a token in a cookie

@param Request $request
@return Session|null
Authenticates a user by a token in a cookie