Skip to content

Commit

Permalink
Update entity references
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshay Kumar committed Jul 26, 2022
1 parent 2287d10 commit f20b214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Security/Guards/APIGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function getCredentials(Request $request)

try {

$user = $this->entityManager->getRepository('UVDeskApiBundle:ApiAccessCredential')->getUserEmailByAccessToken($authorization_key);
$user = $this->entityManager->getRepository(ApiAccessCredential::class)->getUserEmailByAccessToken($authorization_key);

return ['email' => $user['email'], 'auth_token' => $authorization_key];

Expand Down

0 comments on commit f20b214

Please sign in to comment.