willdurand / BazingaHateoasBundle

Integration of the Hateoas library into Symfony.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Concatenate @Route with expr

SpartakusMd opened this issue · comments

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())"
 * )
 */

I think you're looking for the route annotation

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