BazingaHateoasBundle icon indicating copy to clipboard operation
BazingaHateoasBundle copied to clipboard

Ability to configure arbitrary EL variables

Open adrienbrault opened this issue 11 years ago • 2 comments

WDYT of being able to configure EL variables, that would be a bit like twig global variables:

bazinga_hateoas:
    expression_language:
        context_variables:
            base_rel: https://rels.example.com
            foo: bar

To then be able to:

/**
 * @Hateoas\Relation("expr(base_rel ~ '/users')", ...)
 */

adrienbrault avatar Dec 17 '13 18:12 adrienbrault

Yeah! Fairly easy.

willdurand avatar Dec 17 '13 21:12 willdurand

If https://github.com/willdurand/BazingaHateoasBundle/issues/24 is a duplicate of https://github.com/willdurand/BazingaHateoasBundle/issues/13 and is closed, then we should consider closing Ability to configure arbitrary EL variables #13 (the current issue) as well.

nyedidikeke avatar Dec 10 '17 15:12 nyedidikeke