]> Raphaël G. Git Repositories - userbundle/blob - Exception/UnactivatedException.php
Cleanup flash messages
[userbundle] / Exception / UnactivatedException.php
1 <?php declare(strict_types=1);
2
3 /*
4 * This file is part of the Rapsys UserBundle package.
5 *
6 * (c) Raphaël Gertz <symfony@rapsys.eu>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 namespace Rapsys\UserBundle\Exception;
13
14 use Symfony\Component\Security\Core\Exception\AccountStatusException;
15
16 /**
17 * UnactivatedException is thrown when the user account is unactivated.
18 *
19 * {@inheritdoc}
20 */
21 class UnactivatedException extends AccountStatusException {
22 /**
23 * {@inheritdoc}
24 */
25 public function getMessageKey(): string {
26 return 'Account is not activated';
27 }
28 }