Cookie::applies

public Cookie::applies(Request $request)

Checks whether suitable authentication credentials are on the request.

Parameters

\Symfony\Component\HttpFoundation\Request $request: The request object.

Return value

bool TRUE if authentication credentials suitable for this provider are on the request, FALSE otherwise.

Overrides AuthenticationProviderInterface::applies

File

core/modules/user/src/Authentication/Provider/Cookie.php, line 48

Class

Cookie
Cookie based authentication provider.

Namespace

Drupal\user\Authentication\Provider

Code

public function applies(Request $request) {
  return $request->hasSession() && $this->sessionConfiguration->hasSession($request);
}
doc_Drupal
2016-10-29 08:59:00
Comments
Leave a Comment

Please login to continue.