Skip to content

Commit dd4e534

Browse files
committed
added function parameters
1 parent 537b2aa commit dd4e534

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/V1Module/presenters/RegistrationPresenter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ public function actionAcceptInvitation()
463463
#[Path("a", new VInt())]
464464
#[Query("b", new VEmail())]
465465
#[Post("c", new VDouble())]
466-
public function actionTestLoose()
466+
public function actionTestLoose(int $a, ?string $b)
467467
{
468468
$this->sendSuccessResponse("OK");
469469
}
@@ -475,7 +475,7 @@ public function actionTestLoose()
475475
* @throws InvalidArgumentException
476476
*/
477477
#[Format(TestFormat::class)]
478-
public function actionTestFormat()
478+
public function actionTestFormat(int $a, ?string $b)
479479
{
480480
$this->sendSuccessResponse("OK");
481481
}

app/V1Module/router/RouterFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,8 +478,8 @@ private static function createUsersRoutes(string $prefix): RouteList
478478
$router[] = new PostRoute("$prefix/list", "Users:listByIds");
479479
$router[] = new GetRoute("$prefix/ical/<id>", "UserCalendars:");
480480
$router[] = new DeleteRoute("$prefix/ical/<id>", "UserCalendars:expireCalendar");
481-
$router[] = new PostRoute("$prefix/testLoose", "Registration:testLoose");
482-
$router[] = new PostRoute("$prefix/testFormat", "Registration:testFormat");
481+
$router[] = new PostRoute("$prefix/testLoose/<a>", "Registration:testLoose");
482+
$router[] = new PostRoute("$prefix/testFormat/<a>", "Registration:testFormat");
483483
$router[] = new PostRoute("$prefix/invite", "Registration:createInvitation");
484484
$router[] = new PostRoute("$prefix/accept-invitation", "Registration:acceptInvitation");
485485

0 commit comments

Comments
 (0)