Skip to content

Commit f5afc4e

Browse files
authored
IBX-1694: Rebranded dependency injection container service tags (#13)
Ibexa service container tags were rebranded to follow new naming convention. For more details see https://issues.ibexa.co/browse/IBX-1694
1 parent 6939ff1 commit f5afc4e

File tree

12 files changed

+35
-31
lines changed

12 files changed

+35
-31
lines changed

src/bundle/DependencyInjection/Compiler/RichTextHtml5ConverterPass.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,17 @@ public function process(ContainerBuilder $container)
2424
{
2525
if ($container->hasDefinition('ezrichtext.converter.output.xhtml5')) {
2626
$html5OutputConverterDefinition = $container->getDefinition('ezrichtext.converter.output.xhtml5');
27-
$taggedOutputServiceIds = $container->findTaggedServiceIds('ezrichtext.converter.output.xhtml5');
27+
$taggedOutputServiceIds = $container->findTaggedServiceIds(
28+
'ibexa.field_type.richtext.converter.output.xhtml5'
29+
);
2830
$this->setConverterDefinitions($taggedOutputServiceIds, $html5OutputConverterDefinition);
2931
}
3032

3133
if ($container->hasDefinition('ezrichtext.converter.input.xhtml5')) {
3234
$html5InputConverterDefinition = $container->getDefinition('ezrichtext.converter.input.xhtml5');
33-
$taggedInputServiceIds = $container->findTaggedServiceIds('ezrichtext.converter.input.xhtml5');
35+
$taggedInputServiceIds = $container->findTaggedServiceIds(
36+
'ibexa.field_type.richtext.converter.input.xhtml5'
37+
);
3438
$this->setConverterDefinitions($taggedInputServiceIds, $html5InputConverterDefinition);
3539
}
3640
}

src/bundle/DependencyInjection/IbexaFieldTypeRichTextExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class IbexaFieldTypeRichTextExtension extends Extension implements PrependExtens
2828
public const RICHTEXT_CUSTOM_STYLES_PARAMETER = 'ezplatform.ezrichtext.custom_styles';
2929
public const RICHTEXT_CUSTOM_TAGS_PARAMETER = 'ezplatform.ezrichtext.custom_tags';
3030
public const RICHTEXT_ALLOY_EDITOR_PARAMETER = 'ezplatform.ezrichtext.alloy_editor';
31-
public const RICHTEXT_CONFIGURATION_PROVIDER_TAG = 'ezplatform.ezrichtext.configuration.provider';
31+
public const RICHTEXT_CONFIGURATION_PROVIDER_TAG = 'ibexa.field_type.richtext.configuration.provider';
3232

3333
private const RICHTEXT_TEXT_TOOLBAR_NAME = 'text';
3434

src/bundle/Resources/config/configuration.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ services:
2929

3030
Ibexa\FieldTypeRichText\Configuration\AggregateProvider:
3131
arguments:
32-
$providers: !tagged ezplatform.ezrichtext.configuration.provider
32+
$providers: !tagged ibexa.field_type.richtext.configuration.provider

src/bundle/Resources/config/fieldtype_services.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ services:
4848
class: Ibexa\FieldTypeRichText\RichText\Converter\Link
4949
arguments: ['@ezpublish.api.service.location', '@ezpublish.api.service.content', '@ezpublish.urlalias_router', '@?logger']
5050
tags:
51-
- {name: ezrichtext.converter.output.xhtml5, priority: 0}
51+
- {name: ibexa.field_type.richtext.converter.output.xhtml5, priority: 0}
5252

5353
ezrichtext.converter.template:
5454
class: Ibexa\FieldTypeRichText\RichText\Converter\Render\Template
@@ -57,7 +57,7 @@ services:
5757
- '@ezrichtext.converter.output.xhtml5'
5858
- '@?logger'
5959
tags:
60-
- {name: ezrichtext.converter.output.xhtml5, priority: 10}
60+
- {name: ibexa.field_type.richtext.converter.output.xhtml5, priority: 10}
6161
lazy: true
6262

6363
ezrichtext.converter.embed:
@@ -66,14 +66,14 @@ services:
6666
- '@ezrichtext.renderer'
6767
- '@?logger'
6868
tags:
69-
- {name: ezrichtext.converter.output.xhtml5, priority: 10}
69+
- {name: ibexa.field_type.richtext.converter.output.xhtml5, priority: 10}
7070

7171
# Note: should typically be the last one as it produces embeddable fragment
7272
ezrichtext.converter.output.xhtml5.fragment:
7373
class: Ibexa\FieldTypeRichText\RichText\Converter\Xslt
7474
arguments: ['%ezrichtext.converter.output.xhtml5.fragment.resources%']
7575
tags:
76-
- {name: ezrichtext.converter.output.xhtml5, priority: 100}
76+
- {name: ibexa.field_type.richtext.converter.output.xhtml5, priority: 100}
7777

7878
# Aggregate converter for XHTML5 output that other converters register to
7979
# through service tags.
@@ -83,13 +83,13 @@ services:
8383

8484
ezrichtext.validator.input.ezxhtml5:
8585
class: Ibexa\FieldTypeRichText\RichText\Validator\ValidatorAggregate
86-
arguments: [!tagged ezrichtext.validator.input.ezxhtml5]
86+
arguments: [!tagged ibexa.field_type.richtext.validator.input.xhtml5]
8787

8888
ezrichtext.validator.docbook:
8989
class: Ibexa\FieldTypeRichText\RichText\Validator\Validator
9090
arguments: ['%ezrichtext.validator.docbook.resources%']
9191
tags:
92-
- { name: 'ezrichtext.validator.input.ezxhtml5' }
92+
- { name: ibexa.field_type.richtext.validator.input.xhtml5 }
9393

9494
ezrichtext.validator.output.ezxhtml5:
9595
class: Ibexa\FieldTypeRichText\RichText\Validator\Validator
@@ -109,18 +109,18 @@ services:
109109
- '@ezpublish.spi.persistence.cache.contentHandler'
110110
- '@ezpublish.spi.persistence.cache.locationHandler'
111111
tags:
112-
- { name: 'ezrichtext.validator.input.ezxhtml5' }
112+
- { name: ibexa.field_type.richtext.validator.input.xhtml5 }
113113

114114
ezrichtext.converter.output.xhtml5.core:
115115
class: Ibexa\FieldTypeRichText\RichText\Converter\Html5
116116
arguments:
117117
- '%ezrichtext.converter.output.xhtml5.resources%'
118118
- '@ezpublish.config.resolver'
119119
tags:
120-
- {name: ezrichtext.converter.output.xhtml5, priority: 50}
120+
- {name: ibexa.field_type.richtext.converter.output.xhtml5, priority: 50}
121121

122122
# Aggregate converter for XHTML5 input that other converters register to
123-
# through 'ezrichtext.converter.input.xhtml5' service tag.
123+
# through 'ibexa.field_type.richtext.converter.input.xhtml5' service tag.
124124
ezrichtext.converter.input.xhtml5:
125125
class: Ibexa\FieldTypeRichText\RichText\Converter\Aggregate
126126
lazy: true
@@ -131,13 +131,13 @@ services:
131131
- '%ezrichtext.converter.input.xhtml5.resources%'
132132
- '@ezpublish.config.resolver'
133133
tags:
134-
- {name: ezrichtext.converter.input.xhtml5, priority: 50}
134+
- {name: ibexa.field_type.richtext.converter.input.xhtml5, priority: 50}
135135

136136
# Note: should run before xsl transformation
137137
ezrichtext.converter.input.xhtml5.programlisting:
138138
class: Ibexa\FieldTypeRichText\RichText\Converter\ProgramListing
139139
tags:
140-
- {name: ezrichtext.converter.input.xhtml5, priority: 10}
140+
- {name: ibexa.field_type.richtext.converter.input.xhtml5, priority: 10}
141141

142142
ezrichtext.converter.edit.xhtml5:
143143
class: Ibexa\FieldTypeRichText\RichText\Converter\Html5Edit

src/bundle/Resources/config/form.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ services:
1919

2020
Ibexa\FieldTypeRichText\Form\Mapper\RichTextFormMapper:
2121
tags:
22-
- { name: ezplatform.field_type.form_mapper.value, fieldType: ezrichtext }
22+
- { name: ibexa.admin_ui.field_type.form.mapper.value, fieldType: ezrichtext }
2323

src/bundle/Resources/config/settings/fieldtype_external_storages.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ services:
22
Ibexa\FieldTypeRichText\FieldType\RichText\RichTextStorage:
33
arguments: ['@Ibexa\FieldTypeRichText\FieldType\RichText\RichTextStorage\Gateway\DoctrineStorage']
44
tags:
5-
- {name: ezplatform.field_type.external_storage_handler, alias: ezrichtext}
5+
- {name: ibexa.field_type.storage.external.handler, alias: ezrichtext}
66
public: true

src/bundle/Resources/config/settings/fieldtype_services.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ services:
1515

1616
ezrichtext.validator.input.ezxhtml5:
1717
class: Ibexa\FieldTypeRichText\RichText\Validator\ValidatorAggregate
18-
arguments: [!tagged ezrichtext.validator.input.ezxhtml5]
18+
arguments: [!tagged ibexa.field_type.richtext.validator.input.xhtml5]
1919

2020
ezrichtext.validator.docbook:
2121
class: Ibexa\FieldTypeRichText\RichText\Validator\Validator
2222
arguments: ['%ezrichtext.validator.docbook.resources%']
2323
tags:
24-
- { name: 'ezrichtext.validator.input.ezxhtml5' }
24+
- { name: ibexa.field_type.richtext.validator.input.xhtml5 }
2525

2626
ezrichtext.validator.input.dispatcher:
2727
class: Ibexa\FieldTypeRichText\RichText\Validator\ValidatorDispatcher
@@ -35,7 +35,7 @@ services:
3535
- '@ezpublish.spi.persistence.cache.contentHandler'
3636
- '@ezpublish.spi.persistence.cache.locationHandler'
3737
tags:
38-
- { name: 'ezrichtext.validator.input.ezxhtml5' }
38+
- { name: ibexa.field_type.richtext.validator.input.xhtml5 }
3939

4040
ezrichtext.normalizer.input:
4141
class: Ibexa\FieldTypeRichText\RichText\Normalizer\Aggregate
@@ -45,7 +45,7 @@ services:
4545
public: false
4646
arguments: ['%ezplatform.ezrichtext.custom_tags%']
4747
tags:
48-
- { name: 'ezrichtext.validator.input.ezxhtml5' }
48+
- { name: ibexa.field_type.richtext.validator.input.xhtml5 }
4949

5050
Ibexa\FieldTypeRichText\RichText\RelationProcessor:
5151
public: false

src/bundle/Resources/config/settings/fieldtypes.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ services:
55
arguments:
66
- '@Ibexa\FieldTypeRichText\RichText\InputHandler'
77
tags:
8-
- {name: ezplatform.field_type, alias: ezrichtext}
8+
- {name: ibexa.field_type, alias: ezrichtext}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
services:
22
Ibexa\FieldTypeRichText\FieldType\RichText\SearchField:
33
tags:
4-
- {name: ezplatform.field_type.indexable, alias: ezrichtext}
4+
- {name: ibexa.field_type.indexable, alias: ezrichtext}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
services:
22
Ibexa\FieldTypeRichText\Persistence\Legacy\RichTextFieldValueConverter:
33
tags:
4-
- {name: ezplatform.field_type.legacy_storage.converter, alias: ezrichtext}
4+
- {name: ibexa.field_type.storage.legacy.converter, alias: ezrichtext}

0 commit comments

Comments
 (0)