Remove unused code

pull/2487/head
jmontoyaa 7 years ago
parent 681212f97c
commit f5e6edebd3
  1. 1
      src/CoreBundle/Entity/Language.php
  2. 14
      src/UserBundle/Entity/Manager/UserManager.php

@ -3,7 +3,6 @@
namespace Chamilo\CoreBundle\Entity; namespace Chamilo\CoreBundle\Entity;
use Chamilo\CoreBundle\ChamiloCoreBundle;
use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\ArrayCollection;

@ -13,25 +13,13 @@ use Sonata\UserBundle\Entity\UserManager as BaseUserManager;
*/ */
class UserManager extends BaseUserManager class UserManager extends BaseUserManager
{ {
/**
* Finds a user either by confirmation token
*
* @param string $token
*
* @return User
*/
public function findUserByConfirmationToken($token)
{
return $this->findUserBy(['confirmationToken' => $token]);
}
/** /**
* @param string $code * @param string $code
* @return User * @return User
*/ */
public function findUserByOfficialCode($code) public function findUserByOfficialCode($code)
{ {
$criteria = ['officialCode' => $code ]; $criteria = ['officialCode' => $code];
return $this->findUserBy($criteria); return $this->findUserBy($criteria);
} }
} }

Loading…
Cancel
Save