Skip to content

Commit c27d16a

Browse files
committed
minor #1257 Issue #1192 - removed isUser() (jaspernbrouwer)
This PR was merged into the 2.0.x-dev branch. Discussion ---------- Issue #1192 - removed isUser() This PR solves issue #1192, it removes `isUser()` from `FOS\UserBundle\Model\UserInterface` and implementing classes. Commits ------- 10f2b23 Removed isUser()
2 parents e073ce7 + 10f2b23 commit c27d16a

File tree

3 files changed

+0
-24
lines changed

3 files changed

+0
-24
lines changed

Model/User.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -358,11 +358,6 @@ public function isSuperAdmin()
358358
return $this->hasRole(static::ROLE_SUPER_ADMIN);
359359
}
360360

361-
public function isUser(UserInterface $user = null)
362-
{
363-
return null !== $user && $this->getId() === $user->getId();
364-
}
365-
366361
public function removeRole($role)
367362
{
368363
if (false !== $key = array_search(strtoupper($role), $this->roles, true)) {

Model/UserInterface.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -111,17 +111,6 @@ public function setPassword($password);
111111
*/
112112
public function isSuperAdmin();
113113

114-
/**
115-
* Tells if the the given user is this user.
116-
*
117-
* Useful when not hydrating all fields.
118-
*
119-
* @param null|UserInterface $user
120-
*
121-
* @return boolean
122-
*/
123-
public function isUser(UserInterface $user = null);
124-
125114
/**
126115
* @param boolean $boolean
127116
*

Propel/User.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -218,14 +218,6 @@ public function isSuperAdmin()
218218
return $this->hasRole(static::ROLE_SUPER_ADMIN);
219219
}
220220

221-
/**
222-
* {@inheritDoc}
223-
*/
224-
public function isUser(UserInterface $user = null)
225-
{
226-
return null !== $user && $this->getId() === $user->getId();
227-
}
228-
229221
/**
230222
* {@inheritDoc}
231223
*/

0 commit comments

Comments
 (0)