Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (29 sloc) 0.875 kb
* This file is part of the Symfony package.
* (c) Fabien Potencier <>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
namespace Symfony\Component\Security\Core\User;
* ComparatorInterface used to test if two object are equal in security
* and re-authentication context.
* @author Dariusz Górecki <>
interface ComparableInterface
* 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.
* @return boolean
public function compareTo($object);
Jump to Line
Something went wrong with that request. Please try again.