Skip to content

[ExpressionLanguage] Add enum expression function #48669

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

Merged

Conversation

alexandre-daubois
Copy link
Member

@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 carsonbot added this to the 6.3 milestone Dec 15, 2022
@alexandre-daubois alexandre-daubois force-pushed the feat/enum-expression-language branch 5 times, most recently from 63e5a9a to 3437438 Compare December 15, 2022 20:06
@carsonbot
Copy link

Hey!

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

Cheers!

Carsonbot

@alexandre-daubois alexandre-daubois force-pushed the feat/enum-expression-language branch from 3437438 to db92423 Compare December 19, 2022 12:02
@alexandre-daubois alexandre-daubois force-pushed the feat/enum-expression-language branch from 0223cea to 53bfee4 Compare December 30, 2022 07:45
@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