profileRyan KesPGP keyI build stuffEmailGithubTwitterLast.fmMastodonMatrix

IS~REMEMBERED~

Description

Checks if user is a "Remember Me" user. Replaces IS~AUTHENTICATEDFULLY~ & IS~AUTHENTICATEDREMEMBERED~

Syntax

// BEFORE
if ($this->isGranted('IS_AUTHENTICATED_REMEMBERED')
    && !$this->isGranted('IS_AUTHENTICATED_FULLY')) {
    // ...
}

// AFTER
if ($this->isGranted('IS_REMEMBERED')) {
    // ...
}
{# BEFORE #}
{% if is_granted('IS_AUTHENTICATED_ANONYMOUSLY')
    and not is_granted('IS_AUTHENTICATED_REMEMBERED')
    and not is_granted('IS_AUTHENTICATED_FULLY') %}
    {# ... #}
{% endif %}

{# AFTER #}
{% if is_granted('IS_ANONYMOUS') %}
    {# ... #}
{% endif %}