class LogoutUrlExtension extends Twig_Extension LogoutUrlHelper provides generator functions for the logout URL to Twig. Methods __construct(LogoutUrlGenerator $generator) getFunctions() {@inheritdoc} string getLogoutPath(string|null $key = null) Generates the relative logout URL for the firewall. string getLogoutUrl(string|null $key = null) Generates the absolute logout URL for the firewall. getName() {@inheritdoc} Details __construc
dump($value, $inline, $dumpObjects = false) Parameters $value $inline $dumpObjects
getApplicationVersion()
bool isEnabled() Checks whether the user is enabled. Internally, if this method returns false, the authentication system will throw a DisabledException and prevent login. Return Value bool true if the user is enabled, false otherwise
bool isFresh() Returns true if the response is "fresh". Fresh responses may be served from cache without any interaction with the origin. A response is considered fresh when it includes a Cache-Control/max-age indicator or Expires header and the calculated age is less than the freshness lifetime. Return Value bool true if the response is fresh, false otherwise
compile(Compiler $compiler) Parameters Compiler $compiler
addCasters(array $casters) Adds casters for resources and objects. Maps resources or objects types to a callback. Types are in the key, with a callable caster for value. Resource types are to be prefixed with a :, see e.g. static::$defaultCasters. Parameters array $casters A map of casters
dump(Data $data) Dumps a Data object. Parameters Data $data A Data object
null|array getDecoratedService() Gets the service that decorates this service. Return Value null|array An array composed of the decorated service id, the new id for it and the priority of decoration, null if no service is decorated
interface TokenInterface implements Serializable TokenInterface is the interface for the user authentication information. Methods string __toString() Returns a string representation of the Token. RoleInterface[] getRoles() Returns the user roles. mixed getCredentials() Returns the user credentials. mixed getUser() Returns a user representation. setUser(mixed $user) Sets a user. string getUsername() Returns the username. bool isAuthenticated() Returns whether
Page 607 of 787