Overview

Namespaces

  • PHP
  • ProgrammingAreHard
    • Arbiter
      • Domain
      • Model
  • Symfony
    • Component
      • Security
        • Acl
          • Exception
          • Model
          • Permission
        • Core
          • User

Classes

  • ChainUserProvider
  • InMemoryUserProvider
  • User
  • UserChecker

Interfaces

  • AdvancedUserInterface
  • EquatableInterface
  • UserCheckerInterface
  • UserInterface
  • UserProviderInterface
  • Overview
  • Namespace
  • Class
  • Tree

Interface EquatableInterface

EquatableInterface used to test if two objects are equal in security and re-authentication context.

Namespace: Symfony\Component\Security\Core\User
Author: Dariusz Górecki <darek.krk@gmail.com>
Located at EquatableInterface.php
Methods summary
public boolean
# isEqualTo( Symfony\Component\Security\Core\User\UserInterface $user )

The equality comparison should neither be done by referential equality nor by comparing identities (i.e. getId() === getId()).

The equality comparison should neither be done by referential equality nor by comparing identities (i.e. getId() === getId()).

However, you do not need to compare every attribute, but only those that are relevant for assessing whether re-authentication is required.

Also implementation should consider that $user instance may implement the extended user interface AdvancedUserInterface.

Parameters

$user
Symfony\Component\Security\Core\User\UserInterface
$user

Returns

boolean
Arbiter API documentation generated by ApiGen 2.8.0