Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to configure arbitrary EL variables #13

Open
adrienbrault opened this issue Dec 17, 2013 · 2 comments
Open

Ability to configure arbitrary EL variables #13

adrienbrault opened this issue Dec 17, 2013 · 2 comments

Comments

@adrienbrault
Copy link
Contributor

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')", ...)
 */
@willdurand
Copy link
Owner

Yeah! Fairly easy.

@nyedidikeke
Copy link
Contributor

If #24 is a duplicate of #13 and is closed, then we should consider closing Ability to configure arbitrary EL variables #13 (the current issue) as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants