src/BjyAuthorize/Provider/Identity/AuthenticationIdentityProvider.php
public function setDefaultRole($defaultRole)
    {
        if (! ($defaultRole instanceof RoleInterface || is_string($defaultRole))) {
            throw InvalidRoleException::invalidRoleInstance($defaultRole);
        }

        $this->defaultRole = $defaultRole;
    }
public function setDefaultRole($defaultRole)
    {
        if (! ($defaultRole instanceof RoleInterface || is_string($defaultRole))) {
            throw InvalidRoleException::invalidRoleInstance($defaultRole);
        }

        $this->defaultRole = $defaultRole;
    }
public function setDefaultRole ( $ defaultRole ) { if ( ! ( $ defaultRole instanceof RoleInterface || is_string ( $ defaultRole ) ) ) { throw InvalidRoleException :: invalidRoleInstance ( $ defaultRole ) ; } $ this -> defaultRole = $ defaultRole ; }
Set the rule that's used if you're not authenticated

@param $defaultRole

@throws \BjyAuthorize\Exception\InvalidRoleException
Set the rule that s used if you re not authenticated