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

[ExpressionLanguage] Add enum expression function #48669

Merged

Conversation

alexandre-daubois
Copy link
Contributor

@alexandre-daubois alexandre-daubois commented Dec 15, 2022

Q A
Branch? 6.3
Bug fix? no
New feature? yes
Deprecations? no
Tickets Fix #48593
License MIT
Doc PR symfony/symfony-docs#17632

@carsonbot
Copy link

Hey!

I think @mytuny has recently worked with this code. Maybe they can help review this?

Cheers!

Carsonbot

@nicolas-grekas
Copy link
Member

Thank you @alexandre-daubois.

@nicolas-grekas nicolas-grekas merged commit c759e4e into symfony:6.3 Jan 9, 2023
@alexandre-daubois alexandre-daubois deleted the feat/enum-expression-language branch January 9, 2023 11:17
OskarStark added a commit to symfony/symfony-docs that referenced this pull request Jan 10, 2023
…lexandre-daubois)

This PR was merged into the 6.3 branch.

Discussion
----------

[ExpressionLanguage] Add `enum` expression function

Related to symfony/symfony#48669.

:information_source: I added a namespace to the enum in the example to kind of remind that triple backslashes must be used in the expression to use the namespaced enum.

Commits
-------

42dc551 [ExpressionLanguage] Add `enum` expression function
@fabpot fabpot mentioned this pull request May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using Enum objects in expression language
5 participants