Код: Выделить всё
#[Route('/project/posts/{id}', name:"project-post-view")] //old url
#[Route('/project/posts/{post_ulid}', name:"project-post-view")]
#[Route('/project/posts/{slug}', name:"project-post-view")] // alternative url
function projectViewPost(int $id, string $post_ulid, string $slug, ManagerRegistry $doctrine)
{
//Function stuff here...
}
Подробнее здесь: https://stackoverflow.com/questions/785 ... r-symfonys