@@ -27,6 +27,10 @@ discard block |
||
27 | 27 | */ |
28 | 28 | private $lockEnabled; |
29 | 29 | |
30 | + /** |
|
31 | + * @param integer $threshold |
|
32 | + * @param boolean $lockEnabled |
|
33 | + */ |
|
30 | 34 | public function __construct(ObjectManager $em, $threshold, $lockEnabled) |
31 | 35 | { |
32 | 36 | $this->setObjectManager($em); |
@@ -162,7 +166,7 @@ discard block |
||
162 | 166 | * @param LockableEntity $entity |
163 | 167 | * @param User $userToExclude |
164 | 168 | * |
165 | - * @return EntityVersionLock[] |
|
169 | + * @return \Kunstmaan\AdminListBundle\Repository\EntityVersionLock[] |
|
166 | 170 | */ |
167 | 171 | protected function getEntityVersionLocksByLockableEntity(LockableEntity $entity, /*\Kunstmaan\AdminBundle\Entity\UserInterface*/ $userToExclude = null) |
168 | 172 | { |
@@ -3,7 +3,6 @@ discard block |
||
3 | 3 | namespace Kunstmaan\AdminBundle\Controller; |
4 | 4 | |
5 | 5 | use Doctrine\ORM\EntityManagerInterface; |
6 | -use Kunstmaan\AdminBundle\Entity\User; |
|
7 | 6 | use Kunstmaan\AdminBundle\Form\NewPasswordType; |
8 | 7 | use Kunstmaan\AdminBundle\Form\PasswordRequestType; |
9 | 8 | use Kunstmaan\AdminBundle\Service\PasswordMailerInterface; |
@@ -14,7 +13,6 @@ discard block |
||
14 | 13 | use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface; |
15 | 14 | use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken; |
16 | 15 | use Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface; |
17 | -use Symfony\Contracts\Translation\TranslatorInterface; |
|
18 | 16 | |
19 | 17 | class ResettingController extends Controller |
20 | 18 | { |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use FOS\UserBundle\Form\Type\ResettingFormType; |
6 | 6 | use InvalidArgumentException; |
7 | 7 | use Kunstmaan\AdminBundle\Helper\Menu\MenuAdaptorInterface; |
8 | -use Symfony\Bundle\FrameworkBundle\Routing\DelegatingLoader; |
|
9 | 8 | use Symfony\Component\Config\FileLocator; |
10 | 9 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
11 | 10 | use Symfony\Component\DependencyInjection\Definition; |
@@ -221,6 +221,9 @@ discard block |
||
221 | 221 | return $this->passwordChanged; |
222 | 222 | } |
223 | 223 | |
224 | + /** |
|
225 | + * @param boolean $passwordChanged |
|
226 | + */ |
|
224 | 227 | public function setPasswordChanged($passwordChanged) |
225 | 228 | { |
226 | 229 | $this->passwordChanged = $passwordChanged; |
@@ -237,7 +240,7 @@ discard block |
||
237 | 240 | } |
238 | 241 | |
239 | 242 | /** |
240 | - * @param mixed $googleId |
|
243 | + * @param string $googleId |
|
241 | 244 | */ |
242 | 245 | public function setGoogleId($googleId) |
243 | 246 | { |
@@ -330,7 +333,7 @@ discard block |
||
330 | 333 | } |
331 | 334 | |
332 | 335 | /** |
333 | - * @return array |
|
336 | + * @return string[] |
|
334 | 337 | */ |
335 | 338 | public function getRoles() |
336 | 339 | { |
@@ -6,5 +6,8 @@ |
||
6 | 6 | |
7 | 7 | interface PasswordMailerInterface |
8 | 8 | { |
9 | + /** |
|
10 | + * @return void |
|
11 | + */ |
|
9 | 12 | public function sendPasswordForgotMail(UserInterface $user, string $locale = 'nl'); |
10 | 13 | } |