-
Notifications
You must be signed in to change notification settings - Fork 27
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
EZP-30462: Change ez.fieldFormMapper
tag to ezplatform.field_type.form_mapper
#292
Conversation
bundle/DependencyInjection/Compiler/FieldTypeFormMapperDispatcherPass.php
Outdated
Show resolved
Hide resolved
bundle/DependencyInjection/Compiler/FieldTypeFormMapperDispatcherPass.php
Outdated
Show resolved
Hide resolved
bundle/DependencyInjection/Compiler/FieldTypeFormMapperDispatcherPass.php
Outdated
Show resolved
Hide resolved
bundle/DependencyInjection/Compiler/FieldTypeFormMapperDispatcherPass.php
Outdated
Show resolved
Hide resolved
...RepositoryFormsBundle/DependencyInjection/Compiler/FieldTypeFormMapperDispatcherPassTest.php
Outdated
Show resolved
Hide resolved
bundle/DependencyInjection/Compiler/FieldTypeFormMapperDispatcherPass.php
Outdated
Show resolved
Hide resolved
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.
Looks good, I'm a bit lost on version numbering though.
$ezplatformFieldFormMapperDefinitionTags = $container->findTaggedServiceIds(self::EZPLATFORM_FIELD_TYPE_FORM_MAPPER_DEFINITION); | ||
|
||
foreach ($ezFieldFormMapperValueTags as $ezFieldFormMapperValueTag) { | ||
@trigger_error('`ez.fieldFormMapper.value` service tag is deprecated and will be removed in version 9. Please use `ezplatform.field_type.form_mapper.value` instead.', E_USER_DEPRECATED); |
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.
In version 9? That's too long :)
As this lands in container log, maybe let's use Product name: eZ Platform 4.0.
CS: Please reformat it into multiple lines so it's easier to review, as you can see 2/3 of reviewers missed that. Since you have constant for that tag, you could use sprintf
for instance.
} | ||
|
||
foreach ($ezFieldFormMapperDefinitionTags as $ezFieldFormMapperValueTag) { | ||
@trigger_error('`ez.fieldFormMapper.definition` service tag is deprecated and will be removed in version 9. Please use `ezplatform.field_type.form_mapper.definition` instead.', E_USER_DEPRECATED); |
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.
Same here.
@alongosz fixed and rebased |
Have you guys analysed the Travis status already? 🙂 Job two fails with: |
Is it the required PR in kernel or something else? |
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.
👍
Jira: https://jira.ez.no/browse/EZP-30462
Tags used to register Field Type features in the dependency injection container should be consistent and follow Symfony convention (snake case)
Relates to:
ezsystems/ezpublish-kernel#2653
ezsystems/ezplatform-matrix-fieldtype#15