Skip to content

Commit d190ec9

Browse files
committed
removed the "equals" method from the code snippet it was removed in 2.1
1 parent 61f74f8 commit d190ec9

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

cookbook/security/entity_provider.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,6 @@ focus on the most important methods that come from the
140140
public function eraseCredentials()
141141
{
142142
}
143-
144-
/**
145-
* @inheritDoc
146-
*/
147-
public function equals(UserInterface $user)
148-
{
149-
return $this->username === $user->getUsername();
150-
}
151143
}
152144
153145
In order to use an instance of the ``AcmeUserBundle:User`` class in the Symfony

0 commit comments

Comments
 (0)