for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Controller\Profile;
use App\Entity\User;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Symfony\Component\Routing\Annotation\Route;
/**
* @Route("/api/profiles/{username}", name="api_profiles_get")
* @Method("GET")
*/
final class GetProfileController
{
* @param User $profile
*
* @return array
public function __invoke(User $profile)
return ['profile' => $profile];
}