Skip to content

Commit

Permalink
BUGFIX: Correctly nest tags for ContentObject registration (#3416)
Browse files Browse the repository at this point in the history
  • Loading branch information
ohader authored May 19, 2023
1 parent 06e6c37 commit a052d91
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function refactor(Node $node): ?Node
}

if (! isset($yamlConfiguration['services'][$contentObjectNameClass])) {
$yamlConfiguration['services'][$contentObjectNameClass]['tags'] = [
$yamlConfiguration['services'][$contentObjectNameClass]['tags'][] = [
'name' => 'frontend.contentobject',
'identifier' => sprintf('%s', $contentObjectName),
];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
services:
Ssch\TYPO3Rector\Tests\Rector\v12\v0\typo3\ContentObjectRegistrationViaServiceConfigurationRector\Source\MultiValue:
tags:
name: frontend.contentobject
identifier: my_object
-
name: frontend.contentobject
identifier: my_object
Ssch\TYPO3Rector\Tests\Rector\v12\v0\typo3\ContentObjectRegistrationViaServiceConfigurationRector\Source\SingleValue:
tags:
name: frontend.contentobject
identifier: my_other_object
-
name: frontend.contentobject
identifier: my_other_object

0 comments on commit a052d91

Please sign in to comment.