-
Notifications
You must be signed in to change notification settings - Fork 50
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
Expression field #352
base: 1.14
Are you sure you want to change the base?
Expression field #352
Conversation
6def5c5
to
1fb1dda
Compare
1fb1dda
to
678c268
Compare
1b07253
to
7589179
Compare
7a02791
to
0a4881e
Compare
|
||
```yaml | ||
# config/packages/sylius_grid.yaml | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line break is present in all YAML/PHP examples in this file. Should I remove it?
@@ -22,6 +22,13 @@ | |||
</service> | |||
<service id="sylius.grid_field.datetime" alias="Sylius\Component\Grid\FieldTypes\DatetimeFieldType" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Normally it has been flipped back. I have to check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I confirmed, I think your branch is not up to date.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No!! @GSadee, you forgot the upmerge from 1.13 to 1.14
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the config files
0a4881e
to
20c2258
Compare
composer.json
Outdated
@@ -35,6 +35,7 @@ | |||
"symfony/dependency-injection": "^5.4 || ^6.4 || ^7.0", | |||
"symfony/deprecation-contracts": "^2.2 || ^3.1", | |||
"symfony/event-dispatcher": "^5.4 || ^6.4 || ^7.0", | |||
"symfony/expression-language": "^5.4 || ^6.0 || ^7.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"symfony/expression-language": "^5.4 || ^6.0 || ^7.0", | |
"symfony/expression-language": "^5.4 || ^6.4 || ^7.0", |
docs/field_types.md
Outdated
Expression | ||
---------- | ||
|
||
The **Expression** column provides flexibility by allowing you to specify an expression that will be evaluated on the fly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The **Expression** column provides flexibility by allowing you to specify an expression that will be evaluated on the fly. | |
The **Expression** field type provides flexibility by allowing you to specify an expression that will be evaluated on the fly. |
docs/field_types.md
Outdated
label: app.ui.price | ||
options: | ||
expression: 'value ~ "$"' | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docs/field_types.md
Outdated
options: | ||
expression: '"<strong>" ~ value ~ "</strong>"' | ||
htmlspecialchars: false | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -36,3 +43,4 @@ | |||
<service id="Sylius\Bundle\GridBundle\FieldTypes\TwigFieldType" alias="sylius.grid_field.twig" /> | |||
</services> | |||
</container> | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/Component/composer.json
Outdated
@@ -34,6 +34,7 @@ | |||
"symfony/config": "^5.4 || ^6.4 || ^7.0", | |||
"symfony/deprecation-contracts": "^2.2", | |||
"symfony/event-dispatcher": "^5.4 || ^6.4 || ^7.0", | |||
"symfony/expression-language": "^5.4 || ^6.0 || ^7.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"symfony/expression-language": "^5.4 || ^6.0 || ^7.0", | |
"symfony/expression-language": "^5.4 || ^6.4 || ^7.0", |
<service id="sylius_grid.expression_language" class="Symfony\Component\ExpressionLanguage\ExpressionLanguage"> | ||
<factory service="sylius_grid.expression_language.factory" /> | ||
</service> | ||
<service id="Symfony\Component\ExpressionLanguage\ExpressionLanguage" alias="sylius_grid.expression_language" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we can use symfony vendor class as alias for our locale expression language instance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, I did this without thinking
20c2258
to
eed11b4
Compare
No description provided.