/**
* @Route(path="/user/{usernameOrEmail}/exists")
* @ParamConverter("user", class="AppBundle:User",
* options={
* "repository_method" = "findByUsernameOrEmail",
* "mapping" = {"usernameOrEmail": "usernameOrEmail"}
* }
* )
* @param User $user
*/
public function checkUsernameAction(User $user)
{
}
Unable to guess how to get a Doctrine instance from the request information.