willdurand / BazingaHateoasBundle

Integration of the Hateoas library into Symfony.
MIT License
294 stars 59 forks source link

Concatenate @Route with expr #32

Closed SpartakusMd closed 7 years ago

SpartakusMd commented 10 years ago

Hi. Im trying to give users full route to blog posters. Is there a way to insert homepage route before expr?

/**
 * @Hateoas\Relation(
 *      name = "poster_path",
 *      href = "expr(object.getWebPath())"
 * )
 */
Khez commented 10 years ago

I think you're looking for the route annotation

It should be able to provide you with full Symfony2 routing capabilities.