Skip to content

Commit

Permalink
Merge pull request #105 from ezsystems/fix_di_tags
Browse files Browse the repository at this point in the history
Replace deprecated field type tags
  • Loading branch information
emodric authored Jul 9, 2019
2 parents 57122d9 + bed8772 commit c6a06b7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,6 @@

class XmlTextConverter implements Converter
{
/**
* Factory for current class.
*
* @note Class should instead be configured as service if it gains dependencies.
*
* @return XmlText
*/
public static function create()
{
return new self();
}

/**
* Converts data from $value to $storageFieldValue.
*
Expand Down
4 changes: 2 additions & 2 deletions lib/settings/fieldtypes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ services:
arguments:
- '@?ezpublish.fieldType.ezxmltext.validator.internal_link'
tags:
- {name: ezpublish.fieldType, alias: ezxmltext}
- {name: ezplatform.field_type, alias: ezxmltext}

ezpublish.fieldType.ezxmltext.formMapper:
class: "%ezpublish.fieldType.ezxmltext.formMapper.class%"
tags:
- { name: ez.fieldFormMapper.value, fieldType: ezxmltext }
- { name: ezplatform.field_type.form_mapper.value, fieldType: ezxmltext }

ezpublish.fieldType.ezxmltext.formType:
class: "%ezpublish.fieldType.ezxmltext.formType.class%"
Expand Down
2 changes: 1 addition & 1 deletion lib/settings/indexable_fieldtypes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ services:
ezpublish.fieldType.indexable.ezxmltext:
class: "%ezpublish.fieldType.indexable.ezxmltext.class%"
tags:
- {name: ezpublish.fieldType.indexable, alias: ezxmltext}
- {name: ezplatform.field_type.indexable, alias: ezxmltext}
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ services:
ezpublish.fieldType.ezxmltext.converter:
class: "%ezpublish.fieldType.ezxmltext.converter.class%"
tags:
- {name: ezpublish.storageEngine.legacy.converter, alias: ezxmltext, lazy: true, callback: '::create'}
- {name: ezplatform.field_type.legacy_storage.converter, alias: ezxmltext}

0 comments on commit c6a06b7

Please sign in to comment.