Skip to content

Commit

Permalink
BUGFIX: Update exception message to use flow structureadjustments:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaeslich committed Sep 8, 2023
1 parent 71e64ed commit c252236
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Neos.Neos/Classes/Fusion/Helper/NodeHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,8 @@
*/
class NodeHelper implements ProtectedContextAwareInterface
{
/**
* @Flow\Inject
* @var ContentRepositoryRegistry
*/
protected $contentRepositoryRegistry;
#[Flow\Inject]
protected ContentRepositoryRegistry $contentRepositoryRegistry;

/**
* Check if the given node is already a collection, find collection by nodePath otherwise, throw exception
Expand Down Expand Up @@ -80,7 +77,7 @@ public function nearestContentCollection(Node $node, string $nodePath): Node
throw new Exception(sprintf(
'No content collection of type %s could be found in the current node (%s) or at the path "%s".'
. ' You might want to adjust your node type configuration and create the missing child node'
. ' through the "flow node:repair --node-type %s" command.',
. ' through the "flow structureadjustments:fix --node-type %s" command.',
$contentCollectionType,
$nodePathOfNode->value,
$nodePath->serializeToString(),
Expand Down

0 comments on commit c252236

Please sign in to comment.