|
1 | 1 | <?php |
2 | 2 |
|
3 | | -declare(strict_types=1); |
4 | | - |
5 | 3 | /* |
6 | 4 | * This file is part of the Silverback API Components Bundle Project |
7 | 5 | * |
|
11 | 9 | * file that was distributed with this source code. |
12 | 10 | */ |
13 | 11 |
|
| 12 | +declare(strict_types=1); |
| 13 | + |
14 | 14 | namespace Symfony\Component\Routing\Loader\Configurator; |
15 | 15 |
|
16 | 16 | use Silverback\ApiComponentsBundle\Action\User\EmailAddressConfirmAction; |
17 | 17 | use Silverback\ApiComponentsBundle\Action\User\PasswordRequestAction; |
18 | 18 | use Silverback\ApiComponentsBundle\Action\User\ResendVerifyEmailAddressAction; |
19 | 19 | use Silverback\ApiComponentsBundle\Action\User\ResendVerifyNewEmailAddressAction; |
20 | 20 | use Silverback\ApiComponentsBundle\Action\User\VerifyEmailAddressAction; |
21 | | -use Symfony\Component\Routing\Route; |
22 | | -use Symfony\Component\Routing\RouteCollection; |
23 | 21 |
|
24 | 22 | return static function (RoutingConfigurator $routes): void { |
25 | 23 | $routes |
26 | | - ->add('api_components_login_check', '/login') |
27 | | - ; |
| 24 | + ->add('api_components_login_check', '/login'); |
28 | 25 |
|
29 | 26 | $routes |
30 | | - ->add('api_components_logout', '/logout') |
31 | | - ; |
| 27 | + ->add('api_components_logout', '/logout'); |
32 | 28 |
|
33 | 29 | $routes |
34 | 30 | ->add('api_components_password_reset_request', '/password/reset/request/{username}') |
35 | 31 | ->methods(['GET']) |
36 | | - ->controller(PasswordRequestAction::class) |
37 | | - ; |
| 32 | + ->controller(PasswordRequestAction::class); |
38 | 33 |
|
39 | 34 | $routes |
40 | 35 | ->add('api_components_confirm_email', '/confirm-email/{username}/{emailAddress}/{token}') |
41 | 36 | ->methods(['GET']) |
42 | | - ->controller(EmailAddressConfirmAction::class) |
43 | | - ; |
| 37 | + ->controller(EmailAddressConfirmAction::class); |
44 | 38 |
|
45 | 39 | $routes |
46 | 40 | ->add('api_components_verify_email', '/verify-email/{username}/{token}') |
47 | 41 | ->methods(['GET']) |
48 | | - ->controller(VerifyEmailAddressAction::class) |
49 | | - ; |
| 42 | + ->controller(VerifyEmailAddressAction::class); |
50 | 43 |
|
51 | 44 | $routes |
52 | 45 | ->add('api_components_resend_email_verification', '/verify-email/{username}/{token}') |
53 | 46 | ->methods(['GET']) |
54 | | - ->controller(ResendVerifyEmailAddressAction::class) |
55 | | - ; |
| 47 | + ->controller(ResendVerifyEmailAddressAction::class); |
56 | 48 |
|
57 | 49 | $routes |
58 | 50 | ->add('api_components_resend_new_email_verification', '/resend-verify-new-email/{username}') |
59 | 51 | ->methods(['GET']) |
60 | | - ->controller(ResendVerifyNewEmailAddressAction::class) |
61 | | - ; |
| 52 | + ->controller(ResendVerifyNewEmailAddressAction::class); |
62 | 53 | }; |
63 | | - |
0 commit comments