Skip to content

Commit 3fda226

Browse files
committed
fixup! fix audit
1 parent 853d7f1 commit 3fda226

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ build
2323

2424
###> lexik/jwt-authentication-bundle ###
2525
/config/jwt/*.pem
26+
/config/apple/*.p8
2627
###< lexik/jwt-authentication-bundle ###
2728

2829
###> squizlabs/php_codesniffer ###

src/Api/Controller/UserController.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
use Symfony\Component\HttpFoundation\Request;
2525
use Symfony\Component\HttpFoundation\Response;
2626
use Symfony\Component\HttpKernel\Attribute\MapRequestPayload;
27-
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
2827
use Symfony\Component\Routing\Attribute\Route;
2928
use Symfony\Component\Serializer\Normalizer\AbstractNormalizer;
3029
use Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer;
@@ -83,7 +82,7 @@ public function me(): JsonResponse
8382
$user = $this->getUser();
8483

8584
if ($user === null) {
86-
throw new NotFoundHttpException('KILLER_USER_NOT_FOUND');
85+
throw $this->createNotFoundException('KILLER_USER_NOT_FOUND');
8786
}
8887

8988
// Serialize user with all info and players list
@@ -137,7 +136,7 @@ public function patchUser(Request $request): JsonResponse
137136
$user = $this->getUser();
138137

139138
if ($user === null) {
140-
throw new NotFoundHttpException('KILLER_USER_NOT_FOUND');
139+
throw $this->createNotFoundException('KILLER_USER_NOT_FOUND');
141140
}
142141

143142
$data = $request->toArray();

0 commit comments

Comments
 (0)