S
S
Sergey Nizhny Novgorod2019-02-28 04:28:48
symfony
Sergey Nizhny Novgorod, 2019-02-28 04:28:48

How to match data in Symphony using ParamConverter?

Hello

* @param AuthDto $authDto
     *
     * @return RedirectResponse
     * @Method("GET")
     * @Route("/auth/token")
     *
     * @ParamConverter("authDto", class="Integration\SystemBundle\Dto\Controller\System\Request\AuthDto", options={"site_id" = "systemSiteId", "user_id" = "systemUserId"})
     */
    public function authNextStepAction(AuthDto $authDto): RedirectResponse

The user_id/site_id data comes to me with a get request and I want to write it into the DTO in the fields called
systemUserId/systemSiteId
Judging by the documentation , I have to do something similar to what I'm doing (I tried with mapping too), but it's all still does not substitute the data.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question