Skip to content

Commit 24cc040

Browse files
Update recipes 2022-11-24 (#17)
1 parent f0c3c5a commit 24cc040

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

scheb/2fa-bundle/5.0/config/routes/scheb_2fa.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66

77
return static function (RoutingConfigurator $routingConfigurator): void {
88
$routingConfigurator->add('2fa_login', '/2fa')
9-
->defaults([
10-
'_controller' => 'scheb_two_factor.form_controller::form',
11-
]);
9+
->controller(['scheb_two_factor.form_controller', 'form']);
1210

1311
$routingConfigurator->add('2fa_login_check', '/2fa_check');
1412
};

scheb/2fa-bundle/6.0/config/routes/scheb_2fa.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66

77
return static function (RoutingConfigurator $routingConfigurator): void {
88
$routingConfigurator->add('2fa_login', '/2fa')
9-
->defaults([
10-
'_controller' => 'scheb_two_factor.form_controller::form',
11-
]);
9+
->controller(['scheb_two_factor.form_controller', 'form']);
1210

1311
$routingConfigurator->add('2fa_login_check', '/2fa_check');
1412
};

0 commit comments

Comments
 (0)