Skip to content

Commit

Permalink
IBX-9509: Revert depracation of custom attributes labels extractor
Browse files Browse the repository at this point in the history
  • Loading branch information
GrabowskiM committed Feb 6, 2025
1 parent 0642bbe commit 67fb78b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion src/bundle/Resources/config/translation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ services:
public: false

Ibexa\FieldTypeRichText\Translation\Extractor\OnlineEditorCustomAttributesExtractor:
deprecated: 'Since ibexa/fieldtype-richtext 4.6.7 the "%service_id%" service is deprecated, will be removed in 5.0.0'
arguments:
$siteAccessList: '%ibexa.site_access.list%'
tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
use JMS\TranslationBundle\Model\MessageCatalogue;
use JMS\TranslationBundle\Translation\ExtractorInterface;

/**
* @deprecated 4.6.7 The "OnlineEditorCustomAttributesExtractor" class is deprecated, will be removed in 5.0.
*/
final class OnlineEditorCustomAttributesExtractor implements ExtractorInterface
{
private const MESSAGE_DOMAIN = 'online_editor';
Expand Down Expand Up @@ -55,7 +52,7 @@ public function extract(): MessageCatalogue
$catalogue->add($this->createMessage(self::CLASS_LABEL_MESSAGE_ID, 'Class'));

foreach ($this->siteAccessList as $scope) {
if (!$this->configResolver->hasParameter(RichText::ATTRIBUTES_SA_SETTINGS_ID)) {
if (!$this->configResolver->hasParameter(RichText::ATTRIBUTES_SA_SETTINGS_ID, null, $scope)) {
continue;
}
$this->extractMessagesForScope($catalogue, $scope);
Expand Down

0 comments on commit 67fb78b

Please sign in to comment.