- Removed the
autowire
parameter in favor of thepassthrough
parameter.
Before:
roukmoute_hashids:
autowire: false
After:
roukmoute_hashids:
passthrough: false
- Replace
id
key option withhashid
.
Before:
/**
* @Route("/users/{userHashid}/status/{statusHashid}")
* @ParamConverter("user", class="RoukmouteBundle\Entity\User", options={"id" = "userHashid"})
* @ParamConverter("status", class="RoukmouteBundle\Entity\Notification", options={"id" = "statusHashid"})
*/
public function getAction(User $user, Status $status)
{
}
After:
/**
* @Route("/users/{userHashid}/status/{statusHashid}")
* @ParamConverter("user", class="RoukmouteBundle\Entity\User", options={"hashid" = "userHashid"})
* @ParamConverter("status", class="RoukmouteBundle\Entity\Notification", options={"hashid" = "statusHashid"})
*/
public function getAction(User $user, Status $status)
{
}
- Remove the requirement to have
Hashid
at the end of the value option
Before:
/**
* @Route("/users/{userHashid}/status/{statusHashid}")
* @ParamConverter("user", class="RoukmouteBundle\Entity\User", options={"id" = "userHashid"})
* @ParamConverter("status", class="RoukmouteBundle\Entity\Notification", options={"id" = "statusHashid"})
*/
public function getAction(User $user, Status $status)
{
}
After:
/**
* @Route("/users/{user}/status/{status}")
* @ParamConverter("user", class="RoukmouteBundle\Entity\User", options={"hashid" = "user"})
* @ParamConverter("status", class="RoukmouteBundle\Entity\Notification", options={"hashid" = "status"})
*/
public function getAction(User $user, Status $status)
{
}