HashHandler

class HashHandler implements HandlerInterface CSS selector comment handler. This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect. Methods __construct(TokenizerPatterns $patterns, TokenizerEscaping $escaping) bool handle(Reader $reader, TokenStream $stream) Details __construct(TokenizerPatterns $patterns, TokenizerEscaping $escaping) Parameters TokenizerPatt

GuardTokenInterface

interface GuardTokenInterface implements TokenInterface A marker interface that both guard tokens implement. Any tokens passed to GuardAuthenticationProvider (i.e. any tokens that are handled by the guard auth system) must implement this interface. Methods string __toString() Returns a string representation of the Token. from TokenInterface RoleInterface[] getRoles() Returns the user roles. from TokenInterface mixed getCredentials() Returns the user credentials. from TokenInterf

Guess::getConfidence()

int getConfidence() Returns the confidence that the guessed value is correct. Return Value int One of the constants VERYHIGHCONFIDENCE, HIGHCONFIDENCE, MEDIUMCONFIDENCE and LOW_CONFIDENCE

Guess

class Guess Base class for guesses made by TypeGuesserInterface implementation. Each instance contains a confidence value about the correctness of the guess. Thus an instance with confidence HIGHCONFIDENCE is more likely to be correct than an instance with confidence LOWCONFIDENCE. Constants VERY_HIGH_CONFIDENCE Marks an instance with a value that is extremely likely to be correct. HIGH_CONFIDENCE Marks an instance with a value that is very likely to be correct. MEDIUM_CONFIDENCE Mar

Guess::getBestGuess()

static Guess|null getBestGuess(array $guesses) Returns the guess most likely to be correct from a list of guesses. If there are multiple guesses with the same, highest confidence, the returned guess is any of them. Parameters array $guesses An array of guesses Return Value Guess|null The guess with the highest confidence

GuardAuthenticatorInterface::supportsRememberMe()

bool supportsRememberMe() Does this method support remember me cookies? Remember me cookie will be set if all of the following are met: A) This method returns true B) The rememberme key under your firewall is configured C) The "remember me" functionality is activated. This is usually done by having a _rememberme checkbox in your form, but can be configured by the "alwaysrememberme" and "remembermeparameter" parameters under the "remember_me" firewall key Return Value bool

GuardAuthenticatorInterface::onAuthenticationSuccess()

Response|null onAuthenticationSuccess(Request $request, TokenInterface $token, string $providerKey) Called when authentication executed and was successful! This should return the Response sent back to the user, like a RedirectResponse to the last page they visited. If you return null, the current request will continue, and the user will be authenticated. This makes sense, for example, with an API. Parameters Request $request TokenInterface $token string $providerKey The prov

GuardAuthenticatorInterface::onAuthenticationFailure()

Response|null onAuthenticationFailure(Request $request, AuthenticationException $exception) Called when authentication executed, but failed (e.g. wrong username password). This should return the Response sent back to the user, like a RedirectResponse to the login page or a 403 response. If you return null, the request will continue, but the user will not be authenticated. This is probably not what you want to do. Parameters Request $request AuthenticationException $exception

GuardAuthenticatorInterface::createAuthenticatedToken()

GuardTokenInterface createAuthenticatedToken(UserInterface $user, string $providerKey) Create an authenticated token for the given user. If you don't care about which token class is used or don't really understand what a "token" is, you can skip this method by extending the AbstractGuardAuthenticator class from your authenticator. Parameters UserInterface $user string $providerKey The provider (i.e. firewall) key Return Value GuardTokenInterface See also AbstractGuardAuthent

GuardAuthenticatorInterface::getCredentials()

mixed|null getCredentials(Request $request) Get the authentication credentials from the request and return them as any type (e.g. an associate array). If you return null, authentication will be skipped. Whatever value you return here will be passed to getUser() and checkCredentials() For example, for a form login, you might: if ($request->request->has('_username')) { return array( 'username' => $request->request->get('_username'), 'password'