Skip to content

Commit

Permalink
Create get me controller
Browse files Browse the repository at this point in the history
  • Loading branch information
KoukiFactori committed Feb 8, 2023
1 parent 95bc0bf commit 2a11f3e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Controller/GetMeController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

namespace App\Controller;

use App\Entity\User;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;

class GetMeController extends AbstractController
{
public function __invoke(): User
{
return $this->getUser();
}
}

0 comments on commit 2a11f3e

Please sign in to comment.